[pygtk] Resize only on X axis

Marcin Lewandowski lists at saepia.net
Fri Nov 3 18:03:59 WST 2006


Thomas Mills Hinkle napisał(a):
> > On 11/2/06, *Marcin Lewandowski* <lists at saepia.net
> > <mailto:lists at saepia.net>> wrote:
> >
> >     Hi,
> >
> >     I tried many things but I can't do that. Anyone can write me a short
> >     example how to allow resizing only on horizontal axis? Y size
would be
> >     calculated automatically and should remain.
> >
> >
> > You'll have to be a lot more specific for us to know what you're talking
> > about. What sort of widget are you trying to resize?
> >
> > In any case, it's likely that if you review the packing section of the
> > tutorial, you'll find the answers you need:
> > http://www.pygtk.org/pygtk2tutorial/ch-PackingWidgets.html

Thanks, I've read tutorial and I think I'm familiar (in general) with
gtk/pygtk but I don't know how to solve that particular problem. I think
documentation lacks of examples and docs are very unprecise in that topic.

I have gtk.Window. It have some widgets, so it gains dimensions
calculated by gtk and it's sum of those widgets' dimensions. I want to
lock that default height, but make user still being able to change width.

I think it will be something with gtk.Window.set_geometry_hints but I
don't know how to use it.

Thanks,

-- 
Marcin Lewandowski


More information about the pygtk mailing list