Tk Library Source Code

View Ticket
Login
Ticket UUID: 2895994
Title: extend tooltip to the treeview widget
Type: Patch Version: None
Submitter: keithv Created on: 2009-11-11 15:19:11
Subsystem: tklib :: tooltip Assigned To: aku
Priority: 8 Severity: Minor
Status: Closed Last Modified: 2024-05-22 20:29:29
Resolution: Accepted Closed By: aku
    Closed on: 2024-05-22 20:29:29
Description:
Using the same logic as listbox, extend tklib tooltip to work with ttk::treeview.

Don't know how to update the doc, but here's some demo code
pack [::ttk::treeview .tree -height 15 -show tree]
foreach txt {first second third} {
    set id [.tree insert {} end -text "$txt item" -open 1]
    ::tooltip::tooltip .tree -item $id "tooltip for $txt item"
    for {set i 0} {$i < 3} {incr i} {
        set child [.tree insert $id end -text "child $i"]
        ::tooltip::tooltip .tree -item $child "tooltip for child $i"
    }
}
User Comments: aku added on 2024-05-22 20:29:29:
Thank you for your extreme patience.

This ticket seems to have been fixed via commit [68f75b30b5e065e6],
based on a newer patch submitted with ticket [94146a51e8].

patthoyts added on 2009-12-03 15:41:01:
Good plan this.

keithv added on 2009-11-11 22:19:17:

File Added - 350454: tooltip.treeview.patch

Attachments: