diff --git a/prompt_window.py b/prompt_window.py index f5b8275..de86a1f 100644 --- a/prompt_window.py +++ b/prompt_window.py @@ -41,9 +41,11 @@ class PromptWindow(Gtk.Window): vbox.pack_start(hbox, True, True, 0) - # self.set_title("Entry") + self.show_all() + Gtk.main() + def save(self, item): # Note: item is the entry directly if enter is pressed, but the button # (i guess) if the button is pressed, so we do not use it. @@ -66,7 +68,5 @@ class PromptWindow(Gtk.Window): if __name__ == '__main__': win = PromptWindow("I'mma tell you what i'm gonna do.") - win.show_all() - Gtk.main() tha_task = win.retrieve() print(tha_task)