[pygtk] Computing optimum size of gtkhtml2.View
Luke Kenneth Casson Leighton
luke.leighton at googlemail.com
Thu Aug 14 15:06:32 WST 2008
ok. thanks sam.
to gtk developers: i'm going to have to terminate work on
python-desktop's gkt2 widget set until a solution is available:
python-gtkhtml3 or other solution. it's simply not ok to have widgets
that force you to specify both the width and the height, and if you
don't do so, they just... don't work.
python-gtkhtml2 views, if you specify only the width, the height
remains at zero: that's unacceptable.
in gtk-sharp, Gtk.HTML works absolutely fine (iirc correctly)
On Wed, Aug 13, 2008 at 10:15 PM, Sam Varshavchik <mrsam at courier-mta.com> wrote:
> Luke Kenneth Casson Leighton writes:
>> 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
>> 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
More information about the pygtk