The user always needs to press the "+1 frame" button. It can be very tiring clicking the mouse all the time.
Therefore, I tried to implement some keyboard trigger for the most commonly pressed button. However, in wx, to implement a keyboard trigger, I find the only way is to bind a
b=wx.Button(self,label='Button',pos=(100,100)) b.Bind(wx.EVT_KEY_DOWN, self.onButtonKeyEvent)
This requires the button to be focused. I have tried to bind the keydown event to the wx frame. However, seems like it is not possible. I have looked for many ways to catch keydown event globally but I wasn't able to find a solution. Is there a possible way to catch a keyboard event globally in this tool?
Thanks!
The user always needs to press the "+1 frame" button. It can be very tiring clicking the mouse all the time.
Therefore, I tried to implement some keyboard trigger for the most commonly pressed button. However, in wx, to implement a keyboard trigger, I find the only way is to bind a
b=wx.Button(self,label='Button',pos=(100,100)) b.Bind(wx.EVT_KEY_DOWN, self.onButtonKeyEvent)This requires the button to be focused. I have tried to bind the keydown event to the wx frame. However, seems like it is not possible. I have looked for many ways to catch keydown event globally but I wasn't able to find a solution. Is there a possible way to catch a keyboard event globally in this tool?
Thanks!