Fwd: [pygtk] Disable/enable window close button
Gian Mario Tagliaretti
gianmt at gnome.org
Wed Jun 25 22:40:19 WST 2008
oops... wrong button, reply-all is better :)
On Wed, Jun 25, 2008 at 4:20 PM, Frédéric
<frederic.mantegazza a gbiloba.org> wrote:
> It does not work...
It does work.
Returning True from "delete-event" stops the signal emission and the
windows stays open, you probably want to give the user another meaning
to close the window, like popping up a message dialog asking if they
really want to close or something like that. The Dialog widget works
in a slightly different way, depending if you use it modal or not
modal, see gtk.Dialog class in the reference manual for more details.
Also the Pygtk FAQ may help, IIRC there are examples on this subject.
cheers
--
Gian Mario Tagliaretti
More information about the pygtk
mailing list