Add a functional function to see if we can isolate problem with including
Maybe it's the object?
This commit is contained in:
parent
494b454c45
commit
b1c36fd82b
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue