AppendRows() for a Table
Torsten Bronger
bronger at physik.rwth-aachen.de
Thu Nov 23 09:10:22 PST 2006
Hallöchen!
Grzegorz Adam Hankiewicz writes:
> Torsten Bronger escribió:
>
>> I try to add a row to a table (+grid), but it doesn't show up.
>> By clicking in the menue on "Add bout", the program calls
>> AppendRows() for the grid object, which itself calls (maybe
>> indirectly) AppendRows() in the table object -- both indeed
>> happens. However, I expect a now row to appear at the bottom of
>> the grid, but nothing happens. What did I fail to do? Thank
>> you!
>
> Modifying your data is not enough, you have to tell the grid that
> new cells were added. This is performed creating a
> GridTableMessage with the GRIDTABLE_NOTIFY_ROWS_APPENDED
> parameter. You have a full example in the GridCustTable.py demo,
> check CustomDataTable.SetValue().
Thank you, this will probably help. However, the book "wxPython in
action" doesn't mention GRIDTABLE_NOTIFY_ROWS_APPENDED. Likewise,
GridCustTable.py never calls AppendRows(). Are there two separate
ways to achieve this in wxPython? If so, I'd also be interested in
a solution according to the book.
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
ICQ 264-296-646
(See http://ime.webhop.org for Jabber, MSN, etc.)
More information about the wxpython-users
mailing list