Exercises
- Change the window icon, you can use this stackoverflow thread for reference.
- Read this tkdocs: Grid Geometry Manager tutorial and redo the final GUI program
mcq_gui.py
usinggrid()
instead of thepack()
method. - Read this tkdocs: Styles and Themes tutorial and docs.python: tkinter.ttk to experiment with changing the appearance of your GUI programs.
- Read this tkdocs: Checkbutton tutorial and implement a solution for cases requiring multiple choices to be selected for a given question.
- Implement
mcq_gui.py
without using classes if you are still not convinced that OOP is better for GUI applications.
Further Reading
- tkdocs — tutorials, best practices and more
- wiki.python: TkInter — learning resources, extensions, etc
- ttk themes
- Python GUI Programming With Tkinter
- stackoverflow: Best way to structure a tkinter application
- My list of resources for GUI and Games