|Title:||ttk::treeview -selectmode doesn't match [listbox]|
|Submitter:||MG||Created on:||2014-03-16 00:23:56|
|Subsystem:||88. Themed Tk||Assigned To:||jenglish|
|Status:||Open||Last Modified:||2016-08-22 12:22:24|
There's no themed [listbox], but [ttk::treeview]s can be set up to do more or less the same job. However, although they both have the -selectmode option, they work differently; in [listbox], -selectmode single allows you to select a single row, while -selectmode browse also lets you select a single row, but also lets you drag the row to reorder elements. In [ttk::treeview], there's no "single", and "browse" doesn't allow dragging. It would be nice if the treeview's "browse" was renamed "single", and a new "browse" mode that allowed dragging, to match the one in [listbox], was added.
jenglish added on 2014-03-18 13:42:44:
Recommended approach is to use '-selectmode none' and implement the desired behavior using widget bindings. See tktable-tile-dev mailing list archives circa Sep 2006 for rationale: http://sourceforge.net/p/tktable/mailman/message/1814126/