Hi all, I'm having a problem with gtkmozembed under python and I was
wondering if anyone could help me. It seems that if threading support
is turned on, when the browser pops up a dialog box it hangs the
program (or at least GTK). This seems to be a common problem with
dialog boxes and pygtk (there's a FAQ question about it:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.014.htp).
Is there a way for me to tell gtkmozembed not to show dialog boxes?
Or to intercept the calls and create the dialog boxes myself?
Below is a sample program that illustrates the problem. Run it and
click on the "Google Adwords" link to see what I mean.
import gtk
import gtkmozembed
gtkmozembed.gtk_moz_embed_set_profile_path("/tmp", "foo")
browser = gtkmozembed.MozEmbed()
browser.load_url("http://www.google.com/ads/")
window = gtk.Window()
window.add(browser)
window.show_all()
window.set_size_request(500, 500)
gtk.threads_init()
gtk.main()
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding