[pygtk] hide on delete_event()
John Finlay
finlay at moeraki.com
Sat Dec 20 03:19:45 WST 2008
Frédéric wrote:
> 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?
>
>
That's what connecting a callback to the "response" signal allows you to do.
John
More information about the pygtk
mailing list