# but.bind("Control+Any", call)
# def call(event): print(event.keysym) print(event.keycode) print(event.keysym_num)
Traceback (most recent call last): File "<pyshell#29>", line 1, in <module> root.bind('<Control-KeyPress-Any>', print) File "C:\Python33\lib\tkinter\__init__.py", line 1006, in bind return self._bind(('bind', self._w), sequence, func, add) File "C:\Python33\lib\tkinter\__init__.py", line 961, in _bind self.tk.call(what + (sequence, cmd)) _tkinter.TclError: bad event type or keysym "Any"
# but.bind('<Any-KeyPress>', call)