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

Matthias Brennwald <[email protected]> Tue, 01 Jun 2021 07:25:48 +0200
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
On Tue, Jun 1 2021 at 02:39:57 +0000, Steve Barnes 
<[email protected]> wrote:
> Wouldn't a wx.ProgressDialog or a wx.agw.pyprogress be more 
> appropriate than a modal wx.MessageDialog? You can optionally have an 
> abort button (in addition to the "Stop"
> 

I know what you mean. I should have explained a bit better.

The idea is that "normal" users are provided with the "Stop" button 
only, so that they will not mess with the clean completion of the long 
running background thread. The additional feature to *immediately* kill 
the background thread should not be obvious to "normal" users, but 
should still be there to allow "those who know what they are doing" to 
kill the process immediately. That's why I don't want to show an 
"immediate kill" button along with the standard "Stop" button, but 
rather trigger the "immediate kill" by pressing a (secret) key.

It would be great if anyone has an idea how to implement the key press 
feature!

-- 
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/0FC0UQ.P0832EZ53UFD1%40gmail.com.