I’m using this python code https://gist.github.com/seankmartin/f660eff4787b586f94d5f678932bcd27#file-keyboardpress-py to get time for keyboard events. It’s working well, but I need to get KEYDOWN and KEYUP also for capital letters and exclamation point. So I modified it by adding to this part So now it looks like this But I still can’t get no capitals letter, no exclamation point. What i’m doing wrong?
Tag: keyevent
Matplotlib figure key_event connection after closing window in recreating loop
I have the following minimalistic code that works perfectly fine: a continuous while loop keeps plotting my data and if I press the escape key the plotting stops. Now, if one closes the matplotlib-window a new appears because of the plt.pause command, but now the key_event is not attached anymore. Is there a way to keep the connection of new
Can you configure key event handling in Qt Designer (PyQt5)?
I just discovered Qt Designer today and it’s rather wonderful. But I’m a keyboard fanatic and don’t want to be forced to use the mouse any more than is strictly necessary, or at the very least I want to have hotkey alternatives to any buttons, etc. This can be coded manually but I was just wondering whether you can somehow