I'm building a TableEditor using the wx backend. The table is a list of DatasetElement objects whose panel_name and dataset_name objects are exposed. Additionally, and unrelated to the problem at hand, whatever row is selected additionally displays a more detailed view of that particular DatasetElement off to the right, using the edit_view attribute (this functionality makes the TableEditor desirable as opposed to some other view style).
I am listening to the 'panel_name' attribute and, whenever it changes, for instance updating two dictionaries for which the panel name is used for rapid lookup to relevant data about the panel. This updates whenever a new character is typed into the display, so that I have two dictionaries who are constantly deleting the association {'incomplete_wor':<DataObject>} and replacing it with {'incomplete_word':<DataObject>} repeatedly as the new name is typed.
This isn't a serious problem, but is there a way to make the TableEditor update its list's members when the user hits enter or shifts the table selection, much like the enter_set keyword in a TextEditor?
If you're using
ObjectColumnto display/set your values you could specify aneditorfor that column. By specifying the editor to beTextEditoryou can adjust theenter_setparameter as needed. Below is the example that would only update the value on Enter key press.Hope this helps.