1. Home
  2. Computing & Technology
  3. Python

An Introduction to Programming wxPython

By Al Lukaszewski, About.com

3 of 6

Create a Derived Class from wx.App

After importing wx, we should first create a derived class from the base class wx.App. We will call it Greeter. This will allow us to add our own functionality and nuancing atop the built-in class.
class Greeter(wx.App):
Here Greeter inherits the methods and attributes of wx.App. Next, we define actions to be taken when Greeter is called.

Index: An Introduction to Programming wxPython

  1. Introducing WXPython
  2. Import wxPython
  3. Create a Derived Class from wx.App
  4. OnInit: The Moment of Instantiation
  5. Showing wx.Frame
  6. Instantiating the App Object

3 of 6

Explore Python

More from About.com

  1. Home
  2. Computing & Technology
  3. Python

©2008 About.com, a part of The New York Times Company.

All rights reserved.