[pygtk] help fixing max/minimum size of a widgets
Steven Howe
howe.steven at gmail.com
Mon Jan 7 12:22:26 WST 2008
Hello,
I'll start with an observation of an effect:
I've noted that Menus have a fixed size by default. That is, as one
drags a window larger, the height of a Menu will not change (naturally
the width does).
My situation:
I have a gtk.HBox with three widgets, a gtk.Progressbar, a
gtk.HSeperator and a gtk.Statusbar in the gtk.HBox. I would like the
gtk.Progressbar and gtk.Statusbar to have minimum fixed widths and fixed
heights, similar to what one expects from a Menu. I've tried
"gtk.Widget.set_size_request", which set the minimum size width and
height very nicely. Now how do I fix the height i.e. maximum = minimum ?
The only feature I could see with aspect is the
gtk.Windowset_geometry_hints. But this just seems like the wrong widget
to be mucking with. I don't want to effect the whole window, just two
children inside the window.||
Thanks for any help.
Steven Howe
More information about the pygtk
mailing list