[pygtk] Resize only on X axis
Thomas Guettler
hv at tbz-pariv.de
Fri Nov 3 18:35:04 WST 2006
> 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.
Hi,
I think you can catch the resize event, set the wanted width
and ignore the height change. Maybe you must return True, to signal
that the event handling is done.
The above solution is just a guess. I am not a pygtk expert.
Thomas
More information about the pygtk
mailing list