The course "Tkinter. GUI Programming with Python" + answers to practical work
The course "Tkinter. GUI Programming in Python" introduces the features of creating a graphical user interface using the tkinter package of the Python programming language. The appendix is supplemented with examples of practical solutions. The lessons themselves are freely available at https://younglinux.info/tkinter/course. A printable PDF version of the course with answers to practical exercises is also available on the website.
The course "Tkinter. GUI Programming in Python" is the third in the section "Python. Programming Training" and requires prior knowledge of the language at the level of structured programming, preferably knowledge of the basics of OOP. You can also get acquainted with them on the Linux Laboratory website.
The lessons in this course focus on working with basic interface elements (widgets), which are common when developing using other programming languages. Learn the basic properties and methods of buttons, labels, text fields, lists, checkboxes and radio buttons, canvas, and menus.
Various options for placing widgets in the parent window are considered: simple packing relative to each other, using a table and using coordinates. These layout techniques are present in many other GUI programming tools.
The settings of the main application window, dialog boxes, and the tkinter.ttk module are studied.
The course includes 19 lessons:
1. What is Tkinter
2. Button, Label, Entry widgets
3. pack() method
4. Text – multi-line text field
5. Tkinter Variables
6. Radiobutton - radio button class
7. Checkbutton - checkbox class
8. Listbox widget
9. The bind() method
10. Events
11. Canvas
12. Canvas. Identifiers, tags and animation
13. PhotoImage class. Adding Images
14. Windows
15. grid() method
16. Dialog boxes
17. Menu widget
18. place() method
19. Module tkinter.ttk