Thanks for your help I take a look to the set_functions() method and I've found the constants as gtk.gdk.FUNC_CLOSE that allows the window to be closeable. In fact I don't know how to allow the window to be NOT closeable and it seems that all functions (minimize, close, move ...) are set by default.
I have found also a function set_deletable that should be adapted to my needs, but I'm not using the right pygtk version. John Finlay wrote: > > 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 > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > > -- View this message in context: http://www.nabble.com/inhibate-menu-of-window-manager-tp20319426p20337661.html Sent from the Gtk+ - Python mailing list archive at Nabble.com. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
