Vidyalelo
Python · Q9

GUI Programming with Python

Programming · Python · question 9

Q9

How do you bind an event to a widget in Tkinter?

A.
bind(event, function)
B.
event.bind(widget, function)
C.
widget.bind(event, function)
Answer
D.
widget(event, function)

Answer: Option C

Solution

Answer: Option C
Solution:
The widget.bind(event, function) syntax is used to bind an event to a widget in Tkinter.