[pygtk] Activate a window
Peter Morgan
pm at daffodil.uk.com
Mon Dec 18 06:49:24 WST 2006
Lovely .. this works for now.. thanks..
Means that users cant maximize but FTITCTAJ
pete
Gian Mario Tagliaretti wrote:
> 2006/12/17, Peter Morgan <pm at 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
More information about the pygtk
mailing list