def run(self): if self.show_dialog == False: return Gtk.ResponseType.OK self.show_all() # and run the real thing return Gtk.Dialog.run(self)