How to I catch the wxGrid's keydown ?

Hello wxPython-users,

I want to catch the event on grid when the user push the return
(enter) key on any cell.

I try with this:

        EVT_GRID_CELL_LEFT_DCLICK(grid,self.OnSubDbl)
        EVT_CHAR(grid,self.OnSubChar) !!!!

... but it is not working.

Why ? Have the grid an event handler to get the pushed key ?

Thanx for helps:

···

--
Best regards,
fowlertrainer mailto:fowlertrainer@anonym.hu

I use
         wx.grid.EVT_GRID_CELL_CHANGE(self, self.cellchange)
So that when the value changes (which is triggered by hitting return or tabbing out of the cell, I believe), I can update the data structures.

···

On Monday, March 29, 2004, at 05:32 AM, fowlertrainer@anonym.hu wrote:

Hello wxPython-users,

I want to catch the event on grid when the user push the return
(enter) key on any cell.

I try with this:

        EVT_GRID_CELL_LEFT_DCLICK(grid,self.OnSubDbl)
        EVT_CHAR(grid,self.OnSubChar) !!!!

... but it is not working.

Why ? Have the grid an event handler to get the pushed key ?

Thanx for helps:

--
Best regards,
fowlertrainer mailto:fowlertrainer@anonym.hu

---------------------------------------------------------------------
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