From b1c36fd82b52bd16ed436f3ca859e9c6bce03834 Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 12:59:26 -0400 Subject: [PATCH] Add a functional function to see if we can isolate problem with including Maybe it's the object? --- prompt_window.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/prompt_window.py b/prompt_window.py index 17ce26c..c277b26 100644 --- a/prompt_window.py +++ b/prompt_window.py @@ -66,8 +66,11 @@ class PromptWindow(Gtk.Window): # else if self.orig_task: # return "Pomodoro cancelled, original goal was:" +def prompt(prompt=None, task=None): + win = PromptWindow(prompt=prompt, task=task) + return win.retrieve() + if __name__ == '__main__': - win = PromptWindow("I'mma tell you what i'm gonna do.") - tha_task = win.retrieve() - print(tha_task) + task = prompt(prompt="What'll you do next?", task="Something, probably!") + print(task)