[wxPython] simple grid question

a vanilla wxGrid seems to have a problem with arrow-key navigation after
a cell has been edited. given the following code:

from wxPython.wx import *
from wxPython.grid import *

if __name__ == '__main__':
   app = wxPySimpleApp()
   f = wxFrame(None, -1, 'simple app')
   f.Show(true)

   g = wxGrid(f, -1)
   g.CreateGrid(5, 5)

   app.MainLoop()

when i run this (wxPython 2.3.2.1 and Python 2.1.1 on a 2.4.2 Linux
box), the cursor starts on cell (0,0) and i can move the cursor from
cell to cell with arrow keys, that tab key, and the enter key. then i
enter a field (2 mouse clicks), get an edit cursor, edit (or not), and
either finish (with tab or enter) or abort (esc) the edit.

at this point, the enter and tab keys still navigate, but the arrow keys
don't. i can only get arrow key navigation back by clicking a cell with
the mouse.

is this something i'm doing wrong (not doing right), or is this a
problem with wxGrid?

Greg Goodman

when i run this (wxPython 2.3.2.1 and Python 2.1.1 on a 2.4.2 Linux
box), the cursor starts on cell (0,0) and i can move the cursor from
cell to cell with arrow keys, that tab key, and the enter key. then i
enter a field (2 mouse clicks), get an edit cursor, edit (or not), and
either finish (with tab or enter) or abort (esc) the edit.

at this point, the enter and tab keys still navigate, but the arrow keys
don't. i can only get arrow key navigation back by clicking a cell with
the mouse.

This is an issue with SetFocus that I'll be checking in a fix for shortly.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

FYI: just tested: arrow keys doesn't work here after start up. One have to
select some grid with the mouse before arrow keys start functioning.
[wxGTK 2.3.2, wxP 2.3.2.1, Py 2.1.1, lk 2.4.18-pre4]

Bugging-you-in-own-interesting-ly y'rs,
  Hans-Peter

···

On Tuesday, 5. February 2002 21:30, Robin Dunn wrote:

> when i run this (wxPython 2.3.2.1 and Python 2.1.1 on a 2.4.2 Linux
> box), the cursor starts on cell (0,0) and i can move the cursor from
> cell to cell with arrow keys, that tab key, and the enter key. then i
> enter a field (2 mouse clicks), get an edit cursor, edit (or not), and
> either finish (with tab or enter) or abort (esc) the edit.
>
> at this point, the enter and tab keys still navigate, but the arrow keys
> don't. i can only get arrow key navigation back by clicking a cell with
> the mouse.

This is an issue with SetFocus that I'll be checking in a fix for shortly.