Learn how to build a graphical user interface (GUI) for your Python applications with Tkinter.
Overview
Syllabus
Introduction
- Create a GUI for your Python desktop application
- What you should know
- Using the exercise files
- Installing Python 3 and Tcl/Tk for Windows
- Installing Python 3 and Tcl/Tk for Mac
- Saying hello to Tkinter
- Tk and Tkinter background
- Creating and configuring widgets
- Managing widget placement
- Handling user events
- Revisiting Hello, Tkinter!
- Displaying text and images with labels
- Capturing input with buttons
- Presenting choices with check buttons and radio buttons
- Entering single-line text with the Entry widget
- Making selections with the Combobox and Spinbox
- Inputting values and displaying status with the Scale and Progressbar
- Organizing widgets with frames
- Creating additional top-level windows
- Separating widgets within paned windows
- Grouping widgeting within a tabbed notebook
- Entering and displaying multiple lines with the Text widget
- Adding tags, marks, images, and widgets to the Text widget
- Building a hierarchical treeview
- Adding columns and selecting items in the Treeview
- Building cascading menus
- Drawing a basic line on the Canvas
- Drawing complex shapes on the Canvas
- Attaching a scroll bar to widgets
- Configuring widget styles
- Prompting users with the Messagebox and dialogs
- Using the Pack geometry manager
- Using the Grid geometry manager
- Using the Place geometry manager
- Configuring command callbacks
- Binding to keyboard events
- Binding to mouse events
- Binding to virtual events
- Binding to multiple events
- Defining project requirements
- Planning the design
- Creating the widgets
- Laying out of the widgets
- Binding to events
- Finishing the GUI with style
- Next steps
Taught by
Barron Stone