Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
NAME
Tree - Tree widget
CREATION
Tree pathName ?option value...?
STANDARD OPTIONS
-background or -bg -borderwidth or -bd
-cursor -highlightbackground
-highlightcolor -highlightthickness
-relief -selectbackground
-selectforeground -takefocus
-xscrollcommand -yscrollcommand
WIDGET-SPECIFIC OPTIONS
-closecmd -crossfill
-crossclosebitmap -crosscloseimage
-crossopenbitmap -crossopenimage
-deltax -deltay
-dragenabled -dragendcmd
-dragevent -draginitcmd
-dragtype -dropcmd
-dropenabled -dropovercmd
-dropovermode -droptypes
-height -linesfill
-linestipple -opencmd
-padx -redraw
-selectcommand -selectfill
-showlines -width
WIDGET COMMAND
pathName bindImage event script
pathName bindText event script
pathName cget option
pathName closetree node
pathName configure ?option? ?value option value ...?
pathName delete ?arg...?
pathName edit node text ?verifycmd? ?clickres? ?select?
pathName exists node
pathName index node
pathName insert index parent node ?option value...?
pathName itemcget node option
pathName itemconfigure node ?option? ?value option value ...?
pathName move parent node index
pathName nodes node ?first? ?last?
pathName opentree node
pathName parent node
pathName reorder node neworder
pathName see node
pathName selection cmd ?arg...?
pathName toggle node
pathName visible node
pathName xview ?arg...?
pathName yview ?arg...?
--------------------------------------------------------------------------------
DESCRIPTION
Tree widget uses canvas to display a hierarchical list of items (called nodes). Each node is composed of a label with its own font and foreground attributes, and an optional image or window. Each node can have a list of subnodes, which can be collapsed or expanded. Each node is drawn in a single line, whose height is defined by the deltay option, so they must have at most this height. A node is uniquely identified by a string given at creation (by the insert command). The node named root is the root of the tree and is not drawn. The tree structure is directly maintained by the widget.