[pygtk] Computing optimum size of gtkhtml2.View

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Aug 13 20:26:36 WST 2008


sam, hi,
did you ever receive a reply - or find a solution - to this question?
for http://lkcl.net/pyjamas-desktop i'm looking for the way to calculate
a sensible size for gtkhtml2.Views, based on the HTML inside.  at present,
exactly as you probably found, a popup dialog is created... with zero width
and height.
only by having set the width to a fixed pixel size is the dialog turning
out to be 1 pixel high (and 218 pixels wide), and the user application chose
that.
l.



More information about the pygtk mailing list