[wxPython-users] some question about custom events ...

Robin Dunn robin at alldunn.com
Mon Jul 2 08:50:14 PDT 2007


Stef Mientki wrote:
> hello,
> 
> I couldn't find much consistent information about custom events on the web,
> the best I found was: http://wiki.wxpython.org/CustomEventClasses.
> 
> Although I succeeded in my goal, I'm still left with a few questions:
> 
> 1.  What's the difference between NewEvent and NewCommandEvent ?

This has already been answered, but not in the simplest terms.  The 
difference is simply that NewEvent creates a new class derived from 
wx.PyEvent, and NewCommandEvent creates a new class derived from 
wx.PyCommandEvent.  See wx/lib/newevent.py for details, it's only about 
20 lines of code.


> 2.   Why in wx, sometimes is used  "parent" and sometimes "Parent" ?

Where do you see this?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list