here is a very simple example to get you started (it looks ugly, but to study the docs for more options is left to you as an exercise
package require BWidget
set w .t
Tree $w
pack $w
# create root-node
$w insert end root 1 -text "Rootnode"
$w insert end 1 1.1 -text "1.1"
$w insert end 1 1.2 -text "1.2"
$w insert end 1.1 1.1.1 -text "1.1.1"
$w insert end 1.1 1.1.2 -text "1.1.2"
When I wanted to adapt the BWidget-Tree to something similar as the "Windows"-Explorer-Tree I had some problems but it works (though I had to use some internals of the Tree).
Nowadays I would rather use TreeCtrl (
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.