dgw::tvmixins - functionality extensions for the ttk::treeview widget such as sorting, tooltips, banding stripes, key based navigation.
dgw::tvmixins - The package dgw::tvmixins implements several snit::widgetadaptors which extend the standard *ttk::treeview* widget with different functionalities. Different adaptors can be chained together to add the required functionalities. Please note that most of the functionalities are not coded mainly by the author of the package DDG but just wrappers of the functionalities into snit::widgetadaptors for easy usage and combining the different properties and functionalities.
The following adaptors are currently available:
# wrapper function proc fbrowse {path args} { set fb [dgw::tvtooltip [dgw::tvsortable [dgw::tvksearch \ [dgw::tvfilebrowser [dgw::tvband \ [ttk::treeview $path]] {*}$args]] \ -sorttypes [list Name directory Size real Modified dictionary]]] return $fb } set fb [fbrowse .fp2] pack $fb -side top -fill both -expand yes pack [::ttk::label .msg -font "Times 12 bold" -textvariable ::msg -width 20 \ -background salmon -borderwidth 2 -relief ridge] \ -side top -fill x -expand false -ipadx 5 -ipady 4 bind $fb <<RowEnter>> { set ::msg " Entering row %d"} bind $fb <<RowLeave>> { set ::msg " Leaving row %d"}
See the following image for an example run:
Please discuss here.