[wxPython-users] Troubles with GetSelectedRows()
Robin Dunn
robin at alldunn.com
Mon Sep 4 10:46:46 PDT 2006
Micha Reiser wrote:
> Hello
>
> I Created a Grid with CreateGrid (in the real probramm I had a TableBase).
>
> Now, when I try to detect the selected Row with GetSelectedRows() I receive
> all the time an empty list?
>
There are different kinds of selections in the Grid class, and
GetSelectedRows only returns those rows that are selected using the row
labels. There are also col selections that are made the same way with
col labels, and also block selections (dragging across a range of cells)
and cell selections (selecting individual cells) and each of them have
their own methods for retrieving the selections. (Yes, I agree that
this is ugly and awkward...)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list