wxpython parameter to EVT_MENU func
Thomas Schultz
tom at tonic.de
Wed Jan 23 05:02:15 EST 2002
Hi,
how can I pass an object to a function called by EVT_MENU?
I'm writing an application using wxgrid. I created a menu entry called
SAVE. I call this function with:
EVT_MENU(self, ID_SAVE, self.Save)
def Save(self, event):
....
In Save I have no acces to the grid, I tried:
EVT_MENU(self, ID_SAVE, self.Save, grid)
def Save(self, event, grid):
....
but this doesn't work.
How can I acces the grid in the function?
Thomas
More information about the Python-list
mailing list