Menu

#234 extend tooltip to the treeview widget

open
8
2009-12-03
2009-11-11
No

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"
}
}

Discussion

  • Keith Vetter

    Keith Vetter - 2009-11-11

    patch for tklib::tooltip to work with treeview

     
  • Pat Thoyts

    Pat Thoyts - 2009-12-03

    Good plan this.

     
  • Pat Thoyts

    Pat Thoyts - 2009-12-03
    • priority: 5 --> 8
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.