1. Home
  2. Computing & Technology
  3. Python

An Introduction to Programming wxPython

From Al Lukaszewski, for 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.
Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python

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

All rights reserved.