def on_button_new_clicked(self, widget, data=None): opener = SetprojectionDialog() result = opener.run() #close the dialog, and check whether to proceed opener.destroy() if result != Gtk.ResponseType.OK: return
def on_mnu_set_activate(self, widget, data=None): setter = SetprojectionDialog() result = setter.run() #close the dialog, and check whether to proceed setter.destroy() if result != Gtk.ResponseType.OK: return