Thanks Robin
Exactly what I needed!
matt
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
I'm now trying to make it fire events, so here's my code that
gets called when the tri-state button is clicked. When I try
and use EVT_TRI_CLICK in the parent of the button as I would
use with EVT_BUTTON, it doesn't work (the function bound with
the event is never called).
Derive your event from wxPyCommandEvent instead of wxPyEvent. Command
events travel up the containment heirarchy, wxEvents don't.
BTW, you may want to look at wxPython/lib/buttons.py for another example of
a custom control.