[pygtk] Activate a window
Gian Mario Tagliaretti
g.tagliaretti at gmail.com
Mon Dec 18 05:34:36 WST 2006
2006/12/17, Peter Morgan <pm a daffodil.uk.com>:
> Is there a way to disable just the maximize "button" on a windows bar,
> leaving only the minimize/iconify and close ?
you can *try* to ask the window manager to do that
import gtk
w = gtk.Window()
w.connect("destroy", gtk.main_quit)
w.set_default_size(200, 300)
w.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
w.show()
gtk.main()
btw not all the WM will honor your request, and on windows for example
you will get only the close button, on my WM it does wok.
cheers
--
Gian Mario Tagliaretti
http://www.parafernalia.org/pygtk/
More information about the pygtk
mailing list