wxpython parameter to EVT_MENU func
tom at tonic.de
Wed Jan 23 11:02:15 CET 2002
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?
More information about the Python-list