[pygtk] PyGTK and urllib

James Henstridge james@daa.com.au
Tue, 18 Jul 2000 19:14:24 +0800 (WST)

On Tue, 18 Jul 2000, Martijn Faassen wrote:

> James Henstridge wrote:
> > On Mon, 17 Jul 2000, Martijn Faassen wrote:
> [snip]
> > Unless I am mistaken, urllib is a syncronous interface, so it will not
> > return until it has completed the transfer.  This means your application
> > will not process any events (mouse clicks, expose events, etc) until the
> > transfer completes, which is what is causing your problems.
> It's not just my application, it's *X* that isn't responsive.
> Window manager, Gnome desktop, everything. That's symptom number 1.
> Symptom number 2 is that urlopen() takes a lot *longer* than when run
> outside the Gnome app. It would've made sense if my application wasn't
> responding; in fact that happens with the first call to urlopen() that
> I do. But the other call really blocks most of X.

What do you call urlopen in response to?  If you call it from a signal
handler when a pointer grab is in effect, that would prevent you sending
input to other windows.  I am not sure about the slowness issue though.

> Regards,
> Martijn


Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/