diff --git a/pomodoroprompt.py b/pomodoroprompt.py index d8e429c..0b4cfae 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -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 = ''