2 #GTK Hello world! by Harvie 2oo9
8 def on_window1_destroy(self
, widget
, data
=None):
11 def on_button1_clicked(self
, widget
, data
=None):
12 self
.button1
.set_label(self
.entry1
.get_text())
13 print(self
.entry1
.get_text())
16 builder
= gtk
.Builder()
17 builder
.add_from_file("hello.ui")
19 self
.window1
= builder
.get_object("window1")
20 self
.button1
= builder
.get_object("button1")
21 self
.entry1
= builder
.get_object("entry1")
22 builder
.connect_signals(self
)
26 if __name__
== "__main__":
This page took 0.66179 seconds and 4 git commands to generate.