Hi,
writing gui apps with wxPython is really a lot of fun, but I've got a problem with
the new wxGrid, which is a wonderfull piece of art, but hell to use without a doc :(.
I have to write an Business application. One part of it enables the user to enter
the articles a customer orderes, that is title, price, number, discount ... . I want
to use wxGrid for that. My problem is I have to change the keymapping somewhat. That is
on ENTER the focus should go to the cell right of the current one. But if it is already
in the last cell (I mean in cell on the very right (the number of columns is fixed)),
the leftmost cell of the row below should become focus.
Is that possible ?
If it is, how ?
What calls do I have to do, which events do I have to handle ... ?
Here a little sketch of the grid:
Focus is were the X is
+-Title------------+-Price-+-Number-+-Disc.-+
···
Line 1 | | X | |
+------------------+----------------+-------+
After the user hit ENTER:
+-Title------------+-Price-+-Number-+-Disc.-+
> Line 1 | | | X |
+------------------+-------+--------+-------+
One more time and it should look like this:
+-Title------------+-Price-+-Number-+-Disc.-+
> Line 1 | | | |
+------------------+-------+--------+-------+
> Line 2 X | | | |
+------------------+-------+--------+-------+
Ok, I think you got the idea.
Happy python