Keybindings: Recognizing Control, Alt, etc on different platforms
Egeland
egelando at online.no
Fri Sep 24 04:44:20 EDT 1999
Hi all. My app uses the "<Key>" binding, and I must know in the callback
procedure if thats a
Control-k or plain k coming in. On Linux, say, I can use the clause
if event.keysym=="k" and event.state==4: # Control-k, not just 'k'
# do something
but that wont work on win32. Is there some platform independent way of
recognizing modifications like
Control, Alt, and Shift ?
Thanks in advance,
Anders Moe
More information about the Python-list
mailing list