Python GUI Development with Tkinter
4h 56mIntermediate2024-02-02
Authors

Barron Stone
Electrical Engineer
Course details
Put an end to writing command-line interfaces for your programs. Use Tkinter, the Python package for creating themed interface elements with the Tk GUI toolkit. Join Barron Stone in this course as he walks through the most popular Tk widgets and shows you how to customize their appearance and behavior to fit your application. Learn how to manage the placement of those widgets on the GUI and make them react to user behavior with event-driven code. The final chapter takes you through the entire start-to-finish process of building the user interface for an application, so you can see how all of these techniques work in a real-world development scenario.
Learning objectives
Installing Python 3 and Tcl/Tk for Mac or Windows
Creating and configuring themed Tk widgets
Decorating the GUI with text labels and images
Capturing input from buttons, menus, and entry fields
Presenting choices with check boxes and radio buttons
Using geometry managers to lay out the GUI
Organizing widgets inside of frames and windows
Handling user actions with event-driven programming
Creating a simple drawing tool with the Canvas
Prompting users with pop-up dialog boxes
Learning objectives
Installing Python 3 and Tcl/Tk for Mac or Windows
Creating and configuring themed Tk widgets
Decorating the GUI with text labels and images
Capturing input from buttons, menus, and entry fields
Presenting choices with check boxes and radio buttons
Using geometry managers to lay out the GUI
Organizing widgets inside of frames and windows
Handling user actions with event-driven programming
Creating a simple drawing tool with the Canvas
Prompting users with pop-up dialog boxes
Skills covered
Tcl/TKTkinterInteraction DesignUser ExperiencePythonProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Create a GUI for your Python desktop application
- 02 - What you should know
- 03 - Using the exercise files
- 04 - 2023 Update
1. Getting Started with Python and Tkinter
- 05 - Installing Python 3 and Tcl Tk for Windows
- 06 - Installing Python 3 and Tcl Tk for Mac
- 07 - Saying hello to Tkinter
2. Tkinter Concepts
- 08 - Tk and Tkinter background
- 09 - Creating and configuring widgets
- 10 - Managing widget placement
- 11 - Handling user events
- 12 - Revisiting Hello, Tkinter
3. Basic Widgets
- 13 - Displaying text and images with labels
- 14 - Capturing input with buttons
- 15 - Presenting choices with check buttons and radio buttons
- 16 - Entering single-line text with the Entry widget
- 17 - Making selections with the Combobox and Spinbox
- 18 - Inputting values and displaying status with the Scale and Progressbar
4. Organizational Widgets
- 19 - Organizing widgets with frames
- 20 - Creating additional top-level windows
- 21 - Separating widgets within paned windows
- 22 - Grouping widgeting within a tabbed notebook
5. Advanced Widgets
- 23 - Entering and displaying multiple lines with the Text widget
- 24 - Adding tags, marks, images, and widgets to the Text widget
- 25 - Building a hierarchical treeview
- 26 - Adding columns and selecting items in the Treeview
- 27 - Building cascading menus
- 28 - Drawing a basic line on the Canvas
- 29 - Drawing complex shapes on the Canvas
- 30 - Attaching a scroll bar to widgets
- 31 - Configuring widget styles
- 32 - Prompting users with the Messagebox and dialogs
6. Geometry Management
- 33 - Using the Pack geometry manager
- 34 - Using the Grid geometry manager
- 35 - Using the Place geometry manager
7. Event Handling
- 36 - Configuring command callbacks
- 37 - Binding to keyboard events
- 38 - Binding to mouse events
- 39 - Binding to virtual events
- 40 - Binding to multiple events
8. Building an Application
- 41 - Defining project requirements
- 42 - Planning the design
- 43 - Creating the widgets
- 44 - Laying out of the widgets
- 45 - Binding to events
- 46 - Finishing the GUI with style
Conclusion
- 47 - Next steps