On Sat, 28 Mar 2009 17:02:37 +0000 Xavier Toth <txtoth gmail com> wrote: > I've got some python code in which I'm trying to use > gdk_X11_get_default_xdisplay but it fails intermittently returning a > bad pointer. I don't believe that this problem has anything to do with > python. Have others experienced this and if so are there any > workarounds? Is this a know issue? I'm running > gtk2-2.14.7-1.fc10.x86_64 on Fedora 10. (snip) > if __name__ == "__main__": > base = Whc() > base.main() How about initializing GTK+ before anything else, like this: if __name__ == "__main__": gtk.init() base = Whc() base.main() Maybe that helps. - Jannis
Attachment:
signature.asc
Description: PGP signature