2) Can arguments be passed to event handlers with Bind ?
What I really want is one handler to handle events from several
widgets, and it has to know where the event came from. I know the
event carries the window ID with it, but I was hoping for a more
general method of passing arbitrary arguments.Thanks in advance,
Eli
You can use lambda in your binding like so:
Button.Bind(wx.EVT_BUTTON, lambda e: self.MyFunction(arg1, arg2, arg3))
The 'e' before the semicolon is the event argument that gets passed to
lambda.
-Kyle Rickey