Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid does not update when new data is entered #21

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments
Closed

Grid does not update when new data is entered #21

GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Original comment by Daniel.S...@gmail.com on 12 Aug 2010 at 1:29

@GoogleCodeExporter
Copy link
Author

after resolving several other issues - this issue can now be closed.

Original comment by Daniel.S...@gmail.com on 14 Aug 2010 at 12:41

  • Changed state: Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant