wxPostEvent

Brendan Simon Brendan at BrendanSimon.com
Fri Sep 1 09:02:30 PDT 2006


I'm trying to post an event from on OGL object to the parent window.  
Basically when I click on an object, I want to execute a command on the 
system.  I've cut-n-paste the OGL code into a wxPanel.  wxPanel has a 
wxProcess object and I want to call wxExecute to run the command.  The 
OGL select event is detected and I'm trying to send a custom event (eg. 
EVT_EXECUTE) to my event handler which will call wxExecute.  Is this the 
right (or a good approach) ???

I can't work out how to create custom events.  Is there sample code for 
this anywhere???

I thought I might try using an existing event, eg. EVT_BUTTON, but the 
following code barfs.
    wxPostEvent(self.parent, EVT_BUTTON)

Where can I find a list of valid events that I can use with wxPostEvent???

Thanks,
Brendan.





More information about the wxpython-users mailing list