[pygtk] Downloading a file without locking the GUI

John Stowers john.stowers.lists at gmail.com
Tue Sep 30 19:06:32 WST 2008


On Tue, 2008-09-30 at 12:53 +0200, Timo wrote:
> I want to download a file by pressing a button in my GUI, all works so 
> that's okay. Offcourse my GUI locks up during the download.
> I tried some things like writing a thread and using gobject.idle_add. 
> But none of these worked.
> Anyone can point me out to some kind of example or tutorial?

The thread approach should work fine. You must have made a mistake
somewhere. I use this approach when using threads in gtk applications

http://www.johnstowers.co.nz/blog/index.php/2007/03/12/threading-and-pygtk/

John

> 
> Thanks.
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



More information about the pygtk mailing list