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:
|
# 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)
|
|
||||||
|
|
Loading…
Reference in a new issue