Re: [pygtk] Downloading a file without locking the GUI

2008-10-05 Thread Steve McClure
On Oct 4, 2008, at 11:24 AM, Timo wrote: > Steve McClure schreef: >> >> If you just wanted progress you could use a reporthook function >> passed to urlretrieve > Thanks, that looks really good! > > >> that would update the UI then >> >>while gtk.events_pending(): >>gtk.mainiteratio

Re: [pygtk] Downloading a file without locking the GUI

2008-10-04 Thread Timo
Steve McClure schreef: > > If you just wanted progress you could use a reporthook function passed > to urlretrieve Thanks, that looks really good! > that would update the UI then > > while gtk.events_pending(): > gtk.mainiteration(False) > > to update the UI. That should make your UI

Re: [pygtk] Downloading a file without locking the GUI

2008-10-01 Thread John Stowers
On Wed, 2008-10-01 at 20:16 +0200, Timo wrote: > Thomas Guettler schreef: > > Timo schrieb: > >> 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.

Re: [pygtk] Downloading a file without locking the GUI

2008-10-01 Thread Steve McClure
On Oct 1, 2008, at 2:16 PM, Timo wrote: > Thomas Guettler schreef: >> Timo schrieb: >>> 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

Re: [pygtk] Downloading a file without locking the GUI

2008-10-01 Thread Timo
Thomas Guettler schreef: > Timo schrieb: >> 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 poi

Re: [pygtk] Downloading a file without locking the GUI

2008-09-30 Thread John Stowers
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 po

[pygtk] Downloading a file without locking the GUI

2008-09-30 Thread Timo
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? Thanks.