Tk Source Code
View Ticket
Not logged in
Ticket UUID: 8a270c661cb7829dce10f89777f3f4a23fabec8c
Title: ttk::treeview -selectmode doesn't match [listbox]
Type: RFE Version: 8.6.0
Submitter: MG Created on: 2014-03-16 00:23:56
Subsystem: 88. Themed Tk (Ttk) Assigned To: jenglish
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2014-03-18 13:42:44
Resolution: None Closed By: nobody
    Closed on:
Description:
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.
User Comments: 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/