-
October 13th, 2011, 03:06 PM
#1
wxPython and keyboard status
I have an app which requires that I be able to detect the status of modifier keys from within a wx.EVT_BUTTON handler. Because the app does not keep focus I cannot use a keypress event to toggle a key status. When the user clicks on a button, the choice of action depends on whether or not the CTRL key is pressed. The pseudo code would be
button click event handler
if CTRP_KEY is pressed
do action 1
else
do action 2
Is it possible to query the status of the modifier keys (shift, ctrl, alt, etc) ad hoc?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|