Kevin Altis - 2004-04-24

Logged In: YES
user_id=228025

I'm not sure any of this is still relevant for PythonCard 1.0.
You can just call a an event handler directly passing an arg of
None (e.g. self.on_btn1_mouseClick(None) ) to run the code
in an event handler that doesn't make use of the event arg.

Actually generating a real event would require constructing a
real wxPython event. Among other things we probably need
to abstract out a mapper between PythonCard event names
and the corresponding wxPython event id and binding
function. We have partly done that. Then we would have to
figure out what additional args are required to set key codes,
mouse position, event target, etc.

Maybe all that would be part of out testing infrastructure and
event simulation, so it would be worth building as part of
PythonCard 1.x?!