Python Forum
Strategy on updating edits back to data table and object variables - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Strategy on updating edits back to data table and object variables (/thread-35767.html)



Strategy on updating edits back to data table and object variables - hammer - Dec-11-2021

I pull data out of a data table to assign to a object's variables. I use these object variables to assign to kivy text input.text. There are numerous text inputs on a screen.
Question 1: when text is changed in some of the text inputs, is it easier just to update all the text entries back to the data table regardless or set up code to bind each text input so only the ones changed get updated back to the table?

Question2: Same idea on updating object variable after a change has been made-just grab them all and update versus going through a call back for each text input and only update ones changed?

Coding wise just seems easier update all each time. speed wise not sure.
thanks