[pygtk] Non-modal dialog?
Timo
timomlists at gmail.com
Tue May 21 17:08:42 WST 2013
Op 20-05-13 21:54, Marco Antonio Islas Cruz schreef:
> Hi,
>
> Using the "run" method makes it block the program flow, if you want a dialog to be non-modal, just use the "show" method (at the end the Dialog is a subclass of gtk.Window).
Note that if you previously used:
response = dialog.run()
to get the response id, this no longer works with the show() method.
You'll have to connect to the dialog "response" event.
Timo
>
> Cheers.
>
> On May 20, 2013, at 2:51 PM, Skip Montanaro <skip at pobox.com> wrote:
>
>> If I want a dialog to be non-modal, I can't use its run() method, is
>> that true? I have a dialog which is defined in Glade to be non-modal,
>> but calling its run() method sure makes it seem modal to me.
>>
>> Thx,
>>
>> Skip
>> _______________________________________________
>> pygtk mailing list pygtk at daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
> Marco Antonio Islas Cruz
> markuz at islascruz.org
>
>
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list