Keyboard Event Binding With tKinter - Python Tkinter GUI Tutorial #44

Опубликовано: 25 September 2026
на канале: John Elder
111,664
2.4k

In this video I'll show you how to do keyboard event binding with tKinter.



Up until not we've run functions by passing a command to a button, but there's a better way to capture keyboard and mouse events in tKinter...binding!


Binding allows us to grab keyboard and mouse events...so mouse clicks (left or right mouse clicks), keyboard presses (Say, if you pressed the q key on your keyboard) and much more.