From f34eb22e490f0876aeb269ca823b81e7cfee85ad 2016-01-18 14:54:03 From: Thomas Kluyver Date: 2016-01-18 14:54:03 Subject: [PATCH] Fix some deprecation warnings in GTK3 example --- diff --git a/examples/IPython Kernel/gui/gui-gtk3.py b/examples/IPython Kernel/gui/gui-gtk3.py index 1ee7c98..935c026 100644 --- a/examples/IPython Kernel/gui/gui-gtk3.py +++ b/examples/IPython Kernel/gui/gui-gtk3.py @@ -20,10 +20,10 @@ def delete_event(widget, event, data=None): def destroy(widget, data=None): Gtk.main_quit() -window = Gtk.Window(Gtk.WindowType.TOPLEVEL) +window = Gtk.Window(type=Gtk.WindowType.TOPLEVEL) window.connect("delete_event", delete_event) window.connect("destroy", destroy) -button = Gtk.Button("Hello World") +button = Gtk.Button(label="Hello World") button.connect("clicked", hello_world, None) window.add(button)