From e1ac2ef49b9c0d38f556a16a92f02bc2cbee3165 Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 12:58:16 -0400 Subject: [PATCH] Start to replace zenipy with our promptwindow script, but called this way it hangs Like it has to be force quit. No entiendo. --- pomodoroprompt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = ''