Add a functional function to see if we can isolate problem with including

Maybe it's the object?
This commit is contained in:
mlncn 2021-05-02 12:59:26 -04:00
parent 494b454c45
commit b1c36fd82b

View file

@ -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)