[pygtk] hide on delete_event()
Frédéric
frederic.mantegazza at gbiloba.org
Sat Dec 20 02:36:03 WST 2008
On vendredi 19 décembre 2008, Frédéric wrote:
> > Then don't use run(), connect a callback to the "response" signal and
> > put all the dialog processing in that. You still need to handle the
> > "delete-event" signal to prevent the dialog closing and put the
> > destroy() in the "response" signal handler assuming the close button
> > is part of the dialog; if not then put it in the button's "clicked"
> > handler.
>
> Ok, I got it!
Things work fine without the run() call...
A last question: is it possible to simulate the run() call, to get a
response id, as I need to make different things depending which button
closed the dialog?
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list