If I bind it in the following way:
wx.grid.EVT_GRID_CELL_CHANGE(self.mygrid, self.on_cell_change)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You shouldn’t bind events like that, that is the old way of doing it.
Use self.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.on_cell_change). You can then also use self.Unbind(wx.grid.EVT_GRID_CELL_CHANGE) to solve your question
(if self is the grid in this example)
Interesting article: http://wiki.wxpython.org/self.Bind%20vs.%20self.button.Bind