Widget Wonderland
Pretty & Practical
Control & Choose
Behind the Scenes
Master Builder
100

Which widget would you use to display a simple piece of text that the user cannot edit?

Label

100

Which property allows you to change the background color of a widget?

bg

100

Which widget provides a dropdown menu for users to select one option from a list?

Combobox

100

If a button says "OFF," which method do you use to change its text to "ON" after it is clicked? 

.config() or .configure()

100

Which geometry manager allows you to place widgets in specific rows and columns?

grid

200

If you want a user to type in a long paragraph or multiple lines of text, which widget is best?

Text

200

If you want to add space inside a widget (between the text and the border), what do you use?

pady, padx

200

The Scale widget is used to select a number. What is the default orientation of a Scale?

Vertical

200

What command sets the text that appears at the very top bar of the window (next to the exit button)?

window.title("My Game")

200

What happens if you forget to use .pack() or .grid() after creating a widget?

The widget will not appear on the screen

300

What keyword argument do you use in a Button to tell it which function to run when clicked?

command

300

To change the font size of a Label to 20, you pass a tuple to the font argument. What does that tuple look like?

("Arial", 20)

300

When using a Combobox, which property is used to define the list of options the user can see?

values

300

If you have 3 buttons in a row and want the middle one to be wider, which property do you change?

width

300

In .grid(), if you want a widget to take up the space of two columns, which argument do you use?

columnspan=2

400

To change the text on an existing Label named my_label, you can use the config method. Write the code line.

my_label.config(text="New Text")

400

Which configuration property changes the color of the text itself?

fg

400

Instead of a regular Python string, Tkinter has its own special variable type that automatically updates labels when changed. What is it called?

StringVar, Default value for combobox

400

If you place two widgets in the exact same row and column in a grid, what happens?

They overlap/stack on top of each other

400

What is a lambda function used for in a Button command?

To pass information/arguments to a function)

500

The Entry widget has a specific method to get the text typed by the user. What is the name of that method?

.get()

500

If you want a Combobox to be "Read Only" so users can't type their own random text into it, what do you set the state to?

readonly

500

To clear all the text currently inside an Entry widget named user_input, what line of code do you use?

user_input.delete(0, 'end')

500

How do you make a Scale go from 1 to 10 instead of the default 0 to 100?

from_=1, to=10

500

Which library and specific terminal command would you use to turn your .py game file into a single, clickable .exe file that opens without a boring console window in the background?

PyInstaller

M
e
n
u