In this video I’ll show you how to move objects on a Tkinter Canvas using the Arrow Keys on your keyboard.
It’s fairly easy to bind keyboard events with Tkinter. In this video we’ll look at binding arrow keys, but also regular letters on the keyboard as well.
Once we bind the events to a specific function in our TKinter program, we can then use the .move() function to move our canvas object using x and y coordinates that we’ll define.
Add comment