-->"Joakim" == Joakim Ziegler <[EMAIL PROTECTED]> writes:
Joakim> I'm making a small graphical frontend to some scripts and
Joakim> functions I already have in Python. These scripts use Python
Joakim> network and HTTP stuff to fetch data. How do I use that in
Joakim> combination with the GTK main loop so that the GUI doesn't
Joakim> freeze when I'm doing network stuff? Will I have to use
Joakim> threads? Does anyone have any sample code to point me to?
threads is one option. it means issues of synchronisation between the
GUI thread and the network thread, but it's not too difficult.
if you were starting from scratch, or were prepared to rewrite some of
the sockets code, using non-blocking mode and the Gtk/Glib mainloop is
another alternative.
d
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk