A. No, you can link each widget to only one method. However, you can run a separate method
from within the original method’s code.
Workshop
Quiz
1. What type of widget should you use to display a list of items from which you can select
multiple items?
a. Entry
b. Checkbutton
c. Listbox
d. Button
2. You can use an Entry widget to both retrieve text entered by the user and display text from
your program. True or false?
3. The process of linking widgets in a window to specific methods inside the Python code is
called what type of programming?
Answers
1. c. Listbox. The Listbox widget allows you to display multiple items that you can select
from.
2. True. The Entry widget provides a textbox area where you can display text from your
program, or allow the user to enter data that your program can read.
3. Event-driven programming is what links the widgets that you display in the GUI window to
methods inside the Python program code.