python - Tkinter windows key event -



python - Tkinter windows key event -

what event windows key in tkinter? i'm using linux, answers both linux , windows. if mac has similar key, sense free allow me know binding it. image there different events left , right windows keys.

the windows key doesn't seem register in programme supposed grab key presses , print screen. haven't seen reply in searches online. i've seen references mod4 beingness associated windows key, that's not proper tkinter event (so says error):

_tkinter.tclerror: bad event type or keysym "mod4"

e.g. next code gets above error.

textwidget.bind("<mod4>", self.myfunction)

after digging found this: https://www.tcl.tk/man/tcl8.6/tkcmd/keysyms.htm these: <win_l>, <win_r>, appear right keys windows. tested in python 3.4 on win7.

python event-handling tkinter windows-key

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -