I have users who like to do all their navigation and data entry using the
keyboard - and consider it a sign of failure if they have to reach for the
mouse!
In a grid that contains a mix of GridCellTextEditors and GridCellChoice
Editors, the ChoiceEditor is problematic. I can activate it using Space,
select choices using cursor Up/Down or Left/Right, but how the heck do I
confirm and exit? The logical key to use is Tab, but this moves the focus
away from the whole grid and onto the next item in the panel, while
leaving the Cell Editor open. Can some kind person enlighten me, please?
Using wxPython 2.4.2.4 with Python 2.3 and Windows 2000
I have users who like to do all their navigation and data entry using the keyboard - and consider it a sign of failure if they have to reach for the mouse!
In a grid that contains a mix of GridCellTextEditors and GridCellChoice Editors, the ChoiceEditor is problematic. I can activate it using Space, select choices using cursor Up/Down or Left/Right, but how the heck do I confirm and exit? The logical key to use is Tab, but this moves the focus away from the whole grid and onto the next item in the panel, while leaving the Cell Editor open. Can some kind person enlighten me, please?
Using wxPython 2.4.2.4 with Python 2.3 and Windows 2000
Since your grid is within a control container (such as a wxPanel) then the TAB in the combobox is being used as a navigation key. (The grid sets flags for itself so that it can keep the TAB key for itself, but doesn't for the editors for some reason...) You can probably work around this by using a custom editor that uses the wxWANTS_CHARS style when the control is created.
BTW, I thought that this problemn was fixed already. In fact I can't duplicate it with 2.4.2.4 on wx2k or XP with the GridCustTable sample in the demo...
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!