I am experimenting by building a simple gui for exploring directories.
Given a current path I have a table that shows the directories in that path and another that shows the files.
I navigate by selecting directories and updating both the tables.
It all works fine unless I want to select the same index from the directories table, even though the value at that index is different.
Nothing happens if I selected index 0, then try to select index 0 again.
I have tries setting the “selected” to the empty list using something like
dirs_source.selected = {‘0d’: {‘glyph’: None, ‘indices’: },
'1d': {'indices': []}, '2d': {}}
but still I cannot select the same index from the table 2X in a row.
I am using the latest version, 12.9 and running on Windows, but I assume it is portable to Linux.
Any suggestions?
Note that I am setting selected on the underlying source, do I need to do something with the table widget itself?
Is there some behavioral difference between setting the selected attribute in Python vs. Javascript.
I prefer to stay all in Python if possible.
Thanks greatly,
- John Muller
