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?
Regards,
Chris
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/