[pygtk] Splash Screen/Threading

Seltzer squabbit7 at gmail.com
Sun Oct 7 05:07:01 WST 2007


Hello,
I'm having some trouble getting a splash screen to work.
After looking around for a while, i found advice to do it like so:

gtk.threads_init()
gtk.gdk.threads_init()
...
sp =3D splash()
sp.do_show()
while gtk.events_pending():
    gtk.main_iteration()
    gobject.timeout_add(9000, sp.destroy)
...
main_window.show()
gtk.threads_enter()
gtk.main()
gtk.threads_leve()
...

The problem is that the program hangs when i get the the gtk.threads_enter()
part,
It works fine though if i don't have the statements about the splash screen.

any ideas?
as an aside... do i need to wrap gtk.main() in threads enter/leave?

thanks allot,
felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20071006/fbf65972/at=
tachment.htm


More information about the pygtk mailing list