Help with EVT_GRID event macros

I've implemented a wxGrid in one of my program, and I would like to call and event every time a cell value changes (so I can update my internal data). What macro do I use? If I create the grid via:

        self.cbgrid = wx.grid.Grid(self, ID_GRID)

I was hoping I could wire up a callback function via something like:

        wx.grid.EVT_GRID_CELL_CHANGE(self, ID_GRID, self.cellchange)

but GRID_CELL_CHANGE doesn't appear to be the right function (it only takes two arguments, for one thing). What is the right function to use, and where should I have looked in the documentation to figure this out?

R.

Simply use:
wx.grid.EVT_GRID_CELL_CHANGE(self.cbgrid, self.cellchange)

Rick Muller
rmuller@sandia.gov

Pim Buurman

···

On 25 Mar 2004, at 23:17, Rick Muller wrote:

Thanks!

R.

···

On Friday, March 26, 2004, at 01:28 AM, Pim Buurman wrote:

On 25 Mar 2004, at 23:17, Rick Muller wrote:

I've implemented a wxGrid in one of my program, and I would like to call and event every time a cell value changes (so I can update my internal data). What macro do I use? If I create the grid via:

        self.cbgrid = wx.grid.Grid(self, ID_GRID)

I was hoping I could wire up a callback function via something like:

        wx.grid.EVT_GRID_CELL_CHANGE(self, ID_GRID, self.cellchange)

but GRID_CELL_CHANGE doesn't appear to be the right function (it only takes two arguments, for one thing). What is the right function to use, and where should I have looked in the documentation to figure this out?

R.

Simply use:
wx.grid.EVT_GRID_CELL_CHANGE(self.cbgrid, self.cellchange)

Rick Muller
rmuller@sandia.gov

Pim Buurman

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Rick Muller
rmuller@sandia.gov