[pygtk] Activate a window

Paul Pogonyshev pogonyshev at gmx.net
Mon Dec 18 05:28:02 WST 2006


Marcus Habermehl (BMH1980) wrote:
> Peter Morgan schrieb:
> > Is there a way to disable just the maximize "button" on a windows bar, 
> > leaving only the minimize/iconify and close ?
> >
> > Please searching but cannot find.. 
>
> Do you searching for set_resizable(False)?

I also have this in a custom wrapper over gtk.Window:

    def make_only_horizontally_resizable (self):
        self.set_geometry_hints (self, max_width = sys.maxint, max_height = -1)

It keeps window resizable, but only horizontally.  Good for e.g.
dialogs with entries only.

Paul


More information about the pygtk mailing list