RE: Catching key press events while model wx.MessageDialog(...) is shown?

Matthias Brennwald <[email protected]> Tue, 01 Jun 2021 14:53:31 +0200
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
On Tue, Jun 1 2021 at 06:44:02 +0000, Steve Barnes 
<[email protected]> wrote:
> I think that you *could* possibly also bind a key handler to the 
> modal dialog after creation and before showing it
> 
I do need the dialog to be modal in my application. Binding a key 
handler to the modal dialog sounds interesting. How would I do that?

On Tue, Jun 1 2021 at 14:15:01 +0200, Karsten Hilbert 
<[email protected]> wrote:
> Is it possible to check for a modifier key being pressed during 
> processing of the [Stop] handler ?
> 
> Such that <CTRL>-[STOP]-leftclick would kill the thread ?

That would work in my simplified example from my first post. However, I 
am not sure if it would still work in the real-world application (will 
have to double check). How could I check for the CTRL button press?

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/75X0UQ.FVYNP2FJHLRM1%40gmail.com.