10. Tkinter: Keyboard input

Subscribers:
5,850
Published on ● Video Link: https://www.youtube.com/watch?v=TbfKFyOPrtc



Duration: 2:33
804 views
0


Video Code

from tkinter import*

def mKey(event):
print("m key pressed")

def downKey(event):
print("Down key pressed")

master=Tk()
master.title("My title")
master.configure(background='white')
master.geometry("350x200")
master.bind('m',mKey)
master.bind('Down',downKey) #Down key must be surrounded by more than and less than symbols (not allowed on YouTube comments)







Tags:
Tkinter
python
introduction
intro
tutorial
inputs
outputs
widgets
window
layouts
keyboard
frames
grid
side
place