Start to replace zenipy with our promptwindow script, but called this way it hangs

Like it has to be force quit.  No entiendo.
This commit is contained in:
mlncn 2021-05-02 12:58:16 -04:00
parent 445aa1d8c5
commit e1ac2ef49b

View file

@ -5,9 +5,9 @@ from datetime import datetime, timedelta
from pathlib import Path
from pytz import timezone
from playsound import playsound
from prompt_window import PromptWindow
import pytz
import zenipy
WORK_MIN = 25 # Minutes for a work session
SHORT_MIN = 5 # Minutes for a short break
@ -27,7 +27,8 @@ def pomodoro_prompt_plan(whatdid = ''):
# than these pop-up GUI notifications/text entry.
if whatdid:
text = "\n\n(Last thing you did: " + whatdid + ')\n'
whatnext = zenipy.zenipy.entry(text=text, placeholder=whatdid, title=title)
prompt = PromptWindow(prompt=text, task=whatdid)
whatnext = prompt.retrieve()
# Pressing cancel returns None, but we want to just treat it as an empty string.
if whatnext is None:
whatnext = ''