You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data containing table that behind the grid object does not update when new
data is pushed into the database. This result in the following behavior: (1)
FINally is launched and the table base gets whatever data is in the database,
(2) the grid takes this data and displays it, (3) the operator adds a new
expense to the database, (4) the grid is not updated and retains the original
data.
The desired behavior is to refresh the grid - but this is slightly more complex
that it seems. From a thread in the wxPython mailing list the following should
work:
(1) load the self.localData component of the table base (CustomDataTable class)
with new data. This might be something like self.grid.tableBase.localData = data
(2) create a grid method that calls the two method in the attached py file.
ResetView handles the addition or removal of any rows/cols, and UpdateValues
ensure that the grid has the latest values for all rows/cols
Original issue reported on code.google.com by Daniel.S...@gmail.com on 10 Aug 2010 at 4:21
ok, slight progress in the sense that the grid will now update when new data is
entered. Another issue has been raised that blocks this issue in which the
database is only accepting a single entry.
Original comment by Daniel.S...@gmail.com on 12 Aug 2010 at 1:24
Original issue reported on code.google.com by
Daniel.S...@gmail.com
on 10 Aug 2010 at 4:21Attachments:
The text was updated successfully, but these errors were encountered: