1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
interface = gtk.Builder()
interface.add_from_file('fichier.glade')
self.labelMiddle = interface.get_object("labelMiddle")
self.vbox = interface.get_object("vbox")
self.aboutDialog = interface.get_object("aboutDialog")
interface.connect_signals(self)
def on_mainWindow_destroy(self, widget):
gtk.main_quit()
def on_buttonUp_clicked(self, widget):
self.labelMiddle.set_text("The label up !")
self.vbox.reorder_child(self.labelMiddle, 0)
def on_buttonDown_clicked(self, widget):
self.labelMiddle.set_text("The label down !")
self.vbox.reorder_child(self.labelMiddle, -1)
def on_dialog_action_area1_button_release_event(self, widget):
self.labelMiddle.set_text("destroy 1 !")
# self.aboutDialog.hide()
# return gtk_false
def on_aboutDialog_destroy_event(self, widget):
self.labelMiddle.set_text("destroy 2 !")
def on_aboutDialog_destroy(self, widget):
return False
self.labelMiddle.set_text("destroy 3 !")
def on_menu_aide_activate(self, widget):
self.aboutDialog.run() |
Partager