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)