Python GUI Development with Tkinter

Introduction:

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. The trainer will walk through the most popular Tk widgets and shows you how to customize their appearance and behavior to fit your application. You’ll learn how to manage the placement of those widgets on the GUI and make them react to user behavior with event-driven code.

Course 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

Duration

7 hours, 1 Day Course

Mode of Delivery

Classroom-based, Instructor-led Training

Course Outlines

  1. Get Started
    1. What is Tkinter
    2. Installing and Importing Tkinter
    3. Basic Tkinter Concepts
    4. First Tkinter Program
    5. Second Tkinter Program
  2. Widgets
    1. Label
    2. Button
    3. Check Button
    4. Radio Button
    5. Entry
    6. Text
    7. Combo Box
    8. Spin Box
    9. Progress Bar
    10. Scale Bar
    11. Treeview
    12. Scroll bar
    13. Message Box
    14. Widget Styles
  3. Organizing Widgets
    1. Frame
    2. Top Level Window
    3. Paned Window
    4. Notebook
  4. Geometry Managers
    1. Pack
    2. Grid
    3. Place
  5. Shapes
    1. Canvas
    2. Line
    3. Rect
    4. Oval
    5. Arc
    6. Poly
    7. Text
  6. Event Handling
    1. Event Handling Methods
    2. Command Callbacks
    3. Binding to Keyboard Event
    4. Binding to Mouse Event
    5. Binding to Virtual Event
    6. Binding to Multiple Events
  7. Tkinter GUI Demo
    1. Best Practices
    2. Layout of a Survey Form
    3. Step 1: Feedback Canvas
    4. Step 2: Create Widgets
    5. Step 3: Layout Widgets
    6. Step 4: Binding to Events