By digging into the TCL commands and finding the mapping between TCL commands and the supported listbox functions using the dir(listbox) Python function, I've been able to get this to work, as far as I've tested. It appears that the listboxVar.set() function does not clear previous state or something. Instead, I'm doing the following: Before starting a new search of items to display in the listbox, clear the existing selection and listbox with listbox.selection_clear(0, 'end') and listbox.delete(0,...
By digging into the TCL commands and finding the mapping between TCL commands and the supported listbox functions using the dir(listbox) Python function, I've been able to get this to work, as far as I've tested. It appears that the listboxVar.set() function does not clear previous state or something. Instead, I'm doing the following: Before starting a new search of items to display in the listbox, clear the existing selection and listbox with listbox.selection_clear(0, 'end') and listbox.delete(0,...
Spoke too soon.... My application produces a growing list of lines for the listbox, over several seconds (10, 20). The first selection of a line, even while the list is still growing, works perfectly. Each time more lines should be displayed, I set the listvariable to the full set of lines known at that time, and they all display correctly. However, none of the lines following the one I initially selected will produce a callback. If I wait until all lines are found before selecting any of them, and...
Bingo! Works great! Thanks Don!
I'm responding now that I'm logged in I can track replies (and maybe edit?). The markdown formatting appears to be messing with the << and >> as well as case; sorry I didn't note that in the first request above. Using PAGE 4.17. The TCL manual does list <<ListboxSelect>> so I kept working with that. In PAGE's bindings window I did as you described above and added <<ListboxSelect>> with the advanced pane, and provided a function for the lambda assignment. However, when generating the GUI .py file...
I'm responding now that I'm logged in I can track replies (and maybe edit?). The markdown formatting appears to be messing with the << and >> as well as case; sorry I didn't note that in the first request above. Using PAGE 4.17. The TCL manual does list <<ListboxSelect>> so I kept working with that. In PAGE's bindings window I did as you described above and added <<ListboxSelect>> with the advanced pane, and provided a function for the lambda assignment. However, when generating the GUI .py file...
I'm responding now that I'm logged in I can track replies (and maybe edit?). The markdown formatting appears to be messing with the << and >> as well as case; sorry I didn't note that in the first request above. Using PAGE 4.17. The TCL manual does list <<ListboxSelect>> so I kept working with that. In PAGE's bindings window I did as you described above and added <<ListboxSelect>> with the advanced pane, and provided a function for the lambda assignment. However, when generating the GUI .py file...
I'm responding now that I'm logged in I can track replies (and maybe edit?). The markdown formatting appears to be messing with the << and >> as well as case; sorry I didn't note that in the first request above. Using PAGE 4.17. The TCL manual does list <<ListboxSelect>> so I kept working with that. In PAGE's bindings window I did as you described above and added <<ListboxSelect>> with the advanced pane, and provided a function for the lambda assignment. However, when generating the GUI .py file...