Aw: RE: Catching key press events while model wx.MessageDialog(...) is shown?
Karsten Hilbert <[email protected]> Tue, 1 Jun 2021 14:15:01 +0200
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <trinity-2069f3d9-e5da-444e-ba18-75d46d97ecf0-1622549701083@3c-app-gmx-bap68> |
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 ? Karsten Gesendet: Dienstag, 01. Juni 2021 um 07:25 Uhr Von: "Matthias Brennwald" <[email protected]> An: [email protected] Betreff: RE: [wxPython-users] Catching key press events while model wx.MessageDialog(...) is shown? 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 . -- 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/trinity-2069f3d9-e5da-444e-ba18-75d46d97ecf0-1622549701083%403c-app-gmx-bap68 .