Is there a better event than EVT_GRID_EDITOR_HIDDEN to detect editing finished ?

hello,

I want to signal another process that I changed a cell in a grid.
I tried to use
  EVT_GRID_EDITOR_HIDDEN
but that has some strange behavior (at least form my viewpoint):

if the cell is a number, edit + hit return, fires the event twice
if cell is a boolean/ choice, nothing is fired, until I go to another cell,
then the event is fired once.

thanks,
Stef Mientki

Try wx.grid.EVT_GRID_CELL_CHANGE … supposed to get triggered when user changes data in a cell via an editor.

···

On 6/28/07, Stef Mientki < s.mientki@ru.nl> wrote:

hello,

I want to signal another process that I changed a cell in a grid.

I tried to use
EVT_GRID_EDITOR_HIDDEN
but that has some strange behavior (at least form my viewpoint):

if the cell is a number, edit + hit return, fires the event twice
if cell is a boolean/ choice, nothing is fired, until I go to another cell,

then the event is fired once.

thanks,
Stef Mientki


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

Ananda Regmi wrote:

Try wx.grid.EVT_GRID_CELL_CHANGE ... supposed to get triggered when user changes data in a cell via an editor.

thanks Anande,
that's a better event, which is indeed fired only once.

cheers,
Stef Mientki

Kamer van Koophandel - handelsregister 41055629 / Netherlands Chamber of Commerce - trade register 41055629