Robin - Thanks. It works like a charm! The name of the method is not intuitive to me.
Are you writing a book?
Mark
···
Message: 14
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.wxwindows.org>
Subject: Re: [wxPython] Custom wxGrid Cell Editor
Date: Fri, 4 Jan 2002 09:40:04 -0800
Reply-To: wxpython-users@lists.wxwindows.org>
> I've subclassed wxPyGridCellEditor (as per one of the wxPython examples) and
> subclassed wxTextCtrl to trap the arrow keys in the text control (see the
> code below). Now I need to trigger the end of tthe current edit from code.
>
> Does anyone know how to programmatically end the current edit?
>Call theGrid.DisableCellEditControl() followed by grid methods to change the
current cursor location, such as MoveCursorDown, or SetGridCursor(row, col)
or whatever makes sense for your situation.--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!--__--__--