From 03eee50e4320cdc35ecd6adb422eb6c734e1465d Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 16:31:36 -0400 Subject: [PATCH] Finish conversion to GTK prompt from zenipy --- pomodoroprompt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pomodoroprompt.py b/pomodoroprompt.py index becd772..637a565 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -20,7 +20,6 @@ def pomodoro_prompt_plan(whatdid = ''): """ Ask about what task will be worked on (showing last thing worked on) """ text = "What're you gonna do?" - title = '' # Instead of repeating this, i'd prefer a clean interface with the ability to get back # the placeholder text with 'esc' or up arrow or something. But i'm not up for building # my own interface, so here's what we get. NOTE: If we can do system notifications that @@ -38,10 +37,9 @@ def pomodoro_prompt_report(whatnext): """ Ask what task was completed, showing the last task claimed to be being worked on """ text = "What'd you do?" - title = '' if whatnext: text = "\n\n(What you said you'd do: " + whatnext + ')\n' - whatdid = zenipy.zenipy.entry(text=text, placeholder=whatnext, title=title) + whatdid = prompt_window.prompt(prompt=text, task=whatnext) # Pressing cancel returns None, but we want to just treat it as an empty string. if whatdid is None: whatdid = ''