[pygtk] gtkmozembed

Gian Mario Tagliaretti gianmt at gnome.org
Mon Nov 5 19:30:08 WST 2007


2007/11/4, JoY§TiCk ... <joystick2020 a gmail.com>:
> hi to you all,

Hi,

> I am coding a small app that uses gtkmozembed. The problem here is
> that I need the embedded browser to load a list of page automatically
> but, if one of these pages doesn't exist, then the browser displays an
> alert window and stuck until someone clicks on the ok button. I looked
> through the reference and searched on google but I wasn't able to find
> a function or something that returns to me that the page was not
> found. It would be useful also a function to autoskip not found pages.
> Anyone has one idea about this problem or, at least, if there are some
> better places to look for more detailed documentation?

I would use python standard httplib for that, if you get an
HTTPResponse 404 you skip that page from the list of URLs that you
wish to load in your app.

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list