Contents

  1. Advanced Events in wxPython
    1. Abstract
    2. Introduction
    3. Hierarchy of Events
    4. Event processing
    5. Resources

Advanced Events in wxPython

Abstract

Introduction

Hierarchy of Events

In wxPython, Events' base classes are wxEvent. Try the following code to assure yourself of it:

>>> import wx
>>> issubclass(wxCloseEvent,wxEvent)
True

And:

>>> issubclass(wxCloseEvent,wxEventPtr)
False

Event processing

Use Bind() to bind wxObjects to wxEvents. Generally, self.Bind(wx.SOME_EVENT, callbackFn, self.boundObject). I dunno, that's a pretty crap example but hey it's something... As I dig around in this more I'll post more, but I'm just a n00b. --TomPlunket

Resources

Event handling overview in the wxWindows Documentation http://www.wxwidgets.org/manuals/2.5.3/wx_eventhandlingoverview.html

In the wxPython XXX

AdvancedEvents (last edited 2008-03-11 10:50:25 by localhost)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.