[pygtk] warnings from dialog.run in pygtk2-2.14.1
John Finlay
finlay at moeraki.com
Thu Jul 16 06:29:49 WST 2009
On 07/15/2009 01:09 AM, Chris Rouch wrote:
> Hi,
>
> I recently upgraded to Fedora 11. Since then every pygtk program I
> have has started to produce a warning when dialog.run() is called:
>
> ./tmp.py:12: GtkWarning: gdk_x11_atom_to_xatom_for_display: assertion
> `atom != GDK_NONE' failed
> response=dialog.run()
>
> A very simple example is:
>
>
> #!/usr/bin/python
> import gtk,gobject
>
> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> dialog = gtk.Dialog("title",window)
> renametable=gtk.Table(2, 2, False)
> dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
> dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
> dialog.set_position(gtk.WIN_POS_MOUSE)
> dialog.set_default_response(gtk.RESPONSE_OK)
> dialog.show_all()
> response=dialog.run()
> dialog.destroy()
>
>
> Is this a problem with my code, or a bug in pygtk?
>
>
Neither. It's the result of a change in gtk 16.2.
John
More information about the pygtk
mailing list