##// END OF EJS Templates
Fix some deprecation warnings in GTK3 example
Thomas Kluyver -
Show More
@@ -20,10 +20,10 b' def delete_event(widget, event, data=None):'
20 def destroy(widget, data=None):
20 def destroy(widget, data=None):
21 Gtk.main_quit()
21 Gtk.main_quit()
22
22
23 window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
23 window = Gtk.Window(type=Gtk.WindowType.TOPLEVEL)
24 window.connect("delete_event", delete_event)
24 window.connect("delete_event", delete_event)
25 window.connect("destroy", destroy)
25 window.connect("destroy", destroy)
26 button = Gtk.Button("Hello World")
26 button = Gtk.Button(label="Hello World")
27 button.connect("clicked", hello_world, None)
27 button.connect("clicked", hello_world, None)
28
28
29 window.add(button)
29 window.add(button)
General Comments 0
You need to be logged in to leave comments. Login now