Tutorial

An Introduction to wxPython

Robin Dunn, Software Craftsman, OSAF

Track: Python
Date: Tuesday, July 25
Time: 8:30am - 12:00pm
Location: E143-144

wxPython is a successful cross-platform GUI toolkit based on the popular wxWidgets system. This tutorial provides a practical introduction to wxPython. An outline of the material follows.

1. GUI Basics

  • Establishing the GUI
  • Event handling
  • GUI-based program structures
2. wxPython Fundamentals
  • wxApp requirements
  • Creating the application frame
  • Window and widget relationships
3. wxPython widgets
  • Widget creation
  • Widget destruction
4. Event handling
  • wxWidgets event types
  • Event registration
  • Handling events
5. Window Layout
  • wxSizers
  • Boxes vs Grids vs Notebooks
  • Composing window designs
6. Putting it All Together
  • Some real applications code