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
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to