[pygtk] Computing optimum size of gtkhtml2.View
mrsam at courier-mta.com
Mon Oct 17 02:15:31 WST 2005
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20051016/9b7d7a1c/attachment.pgp
More information about the pygtk