Tkinter Lesson 3 Exercises: Placing Widgets in a GUI
Each assignment should omit the root.mainloop() method call at the end of the code. Also, each program must include a title for the window. Save these programs as tk3-1.py, tk3-2.py, etc.
Exercise 1:
Create a GUI with a text entry box and a row of buttons. Whenever one of the buttons is pressed, make some feature in the text entry box change (background color changes, font color changes, text is bold, etc). Each button should have a different function and you must have at least four buttons.
Exercise 2:
Create a joke GUI. It can have any misfunctionality you want (dies when user types the "wrong" letter in their name, button disables when user's mouse moves over it). Have fun.
Exercise 3 and 4:
Make a GUI interface for any two of the following past exercises:
Restricted access |