I'm trying to figure out how to compute an optimum size for a dialog containing a gtkhtml2 widget.

From the looks of things, gtkhtml2 formats the HTML content to fit within
whatever its current width is, it has no concept of a preferred size. It just returns some fixed values for size_request() initially, and whatever its parent resized to, later. My HTML content is sourced internally, and I cannot precompute it's optimum size. I place my gtkhtml2.View widget inside a gtk.ScrolledWindow, which is then placed in a gtk.Dialog.

I tried a couple of ways of realizing the widget, and its dialog, but wasn't able to get anywhere. Does anyone know how to compute the default height of a Dialog that contains a gtkhtml2 widget, for some certain, specific width?

I'm also trying to figure out how to detect when a mouse pointer is hovering over an href link inside the gtkhtml2 widget, so that I can change the mouse shape, and how to access the <input> element contents.


Attachment: pgp0XqIQ1TVXK.pgp
Description: PGP signature

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to