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: # else if self.orig_task:
# return "Pomodoro cancelled, original goal was:" # return "Pomodoro cancelled, original goal was:"
def prompt(prompt=None, task=None):
win = PromptWindow(prompt=prompt, task=task)
return win.retrieve()
if __name__ == '__main__': if __name__ == '__main__':
win = PromptWindow("I'mma tell you what i'm gonna do.") task = prompt(prompt="What'll you do next?", task="Something, probably!")
tha_task = win.retrieve() print(task)
print(tha_task)