[wxPython] q=How to overwrite grid cells by default

Hello Robin,

In old wxGrid i used this piece of code to overwrite cells by default.

    def OnSelectCell( self, ev ):
        text = self.GetTextItem()
        text.SetSelection( 0,1000 )

Now i am trying to achieve same behaviour in new wxGrid. Unfortunately
EVT_GRID_EDITOR_SHOWN is sent before cell editor is created.

Is it possible to override wxGridCellTextEditor::BeginEdit in python?
wxGridCellTextEditor::StartingKey also uses AppendText.

Or should i write my own wxPyGridCellEditor based class? :frowning:

Also is it possible tu use TAB/Shift+TAB keys to move to rigth/left cell?

Niki Spahiev
e-mail: niki@vintech.bg

···

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1