Switch to our function but it doesn't solve freezing issue
This commit is contained in:
parent
b1c36fd82b
commit
f856241c80
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
import csv
|
import csv
|
||||||
|
# This is a local script are we supposed to indicate that?
|
||||||
|
import prompt_window
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
from playsound import playsound
|
from playsound import playsound
|
||||||
from prompt_window import PromptWindow
|
|
||||||
|
|
||||||
import pytz
|
import pytz
|
||||||
|
|
||||||
|
@ -27,8 +28,7 @@ def pomodoro_prompt_plan(whatdid = ''):
|
||||||
# than these pop-up GUI notifications/text entry.
|
# than these pop-up GUI notifications/text entry.
|
||||||
if whatdid:
|
if whatdid:
|
||||||
text = "\n\n(Last thing you did: " + whatdid + ')\n'
|
text = "\n\n(Last thing you did: " + whatdid + ')\n'
|
||||||
prompt = PromptWindow(prompt=text, task=whatdid)
|
whatnext = prompt_window.prompt(prompt=text, task=whatdid)
|
||||||
whatnext = prompt.retrieve()
|
|
||||||
# Pressing cancel returns None, but we want to just treat it as an empty string.
|
# Pressing cancel returns None, but we want to just treat it as an empty string.
|
||||||
if whatnext is None:
|
if whatnext is None:
|
||||||
whatnext = ''
|
whatnext = ''
|
||||||
|
|
Loading…
Reference in a new issue