[pygtk] inhibate menu of window manager
John Finlay
finlay at moeraki.com
Wed Nov 5 04:34:50 WST 2008
awalter1 wrote:
> Hello,
>
> In my application python/gtk, I want to inhibate the item "close" from the
> standard menu available in all windows (bottom up of the window) and that
> allows actions as : minimize, maximise, ... close.
> If it is not possible to do that, which signal may I connect to be wake up ?
>
> I've found the signal "delete-event" to catch the "close" action, but it is
> required to connect it for each windows that is a little bit heavy for my
> Application.
> Thanks for your help
>
Try the gtk.gdk.Window.set_functions() method to see if that works with
your window manager. Not all window managers will honor the request.
John.
John
More information about the pygtk
mailing list