Timothy Lillicrap
unread,Mar 4, 2012, 7:13:35 AM3/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to glumpy-users
Hi there,
Hi there,
I think there might be bug with the key_press and release dispatches.
They seem to work perfectly for me without modifiers and with the ALT
modifier, but when I hold CTRL the symbol dispatched is given as None
for most of the keys.
For example, with this sort of simple function in my class:
def on_key_press(self, symbol, modifiers):
print 'Key pressed (symbol=%s, modifiers=%s)'%
(symbol,modifiers)
I get outputs like:
Key pressed (symbol=120, modifiers=4) (with
ALT)
Key pressed (symbol=None, modifiers=2) (with
CTRL)
I can't think of any reason that the symbol should be dispatched as
None for simple characters, so I assume there's some small bug. I
could endeavor to fix this one myself, but it's likely a quick fix for
the original author.
There's also the chance of course that this isn't a bug at all and I'm
just doing something stupid :)
Thanks again for all the help - the on_mouse_scroll bug fix worked
great,
Tim.