Pratt 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.exrc +61 -0
- data/.gitignore +4 -0
- data/History.txt +6 -0
- data/Manifest.txt +46 -0
- data/Pratt.gemspec +351 -0
- data/README.txt +66 -0
- data/Rakefile +85 -0
- data/TODO +54 -0
- data/VERSION +1 -0
- data/bin/pratt.rb +13 -0
- data/config.rb +34 -0
- data/lib/pratt.rb +527 -0
- data/lib/pratt/array.rb +11 -0
- data/lib/pratt/string.rb +18 -0
- data/models/app.rb +40 -0
- data/models/customer.rb +24 -0
- data/models/payment.rb +22 -0
- data/models/pratt.rb +19 -0
- data/models/project.rb +82 -0
- data/models/whence.rb +70 -0
- data/pkgs/tile-0.8.2.tar.gz +0 -0
- data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
- data/pkgs/tile-0.8.2/ChangeLog +4651 -0
- data/pkgs/tile-0.8.2/Makefile +250 -0
- data/pkgs/tile-0.8.2/Makefile.in +250 -0
- data/pkgs/tile-0.8.2/README.txt +86 -0
- data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
- data/pkgs/tile-0.8.2/altTheme.o +0 -0
- data/pkgs/tile-0.8.2/blink.o +0 -0
- data/pkgs/tile-0.8.2/button.o +0 -0
- data/pkgs/tile-0.8.2/cache.o +0 -0
- data/pkgs/tile-0.8.2/clamTheme.o +0 -0
- data/pkgs/tile-0.8.2/classicTheme.o +0 -0
- data/pkgs/tile-0.8.2/config.log +1330 -0
- data/pkgs/tile-0.8.2/config.status +795 -0
- data/pkgs/tile-0.8.2/configure +15248 -0
- data/pkgs/tile-0.8.2/configure.in +89 -0
- data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
- data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
- data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
- data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
- data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
- data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
- data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
- data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
- data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/Makefile +36 -0
- data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
- data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
- data/pkgs/tile-0.8.2/doc/button.n +75 -0
- data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
- data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
- data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
- data/pkgs/tile-0.8.2/doc/entry.n +438 -0
- data/pkgs/tile-0.8.2/doc/frame.n +43 -0
- data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
- data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
- data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
- data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
- data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
- data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
- data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
- data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
- data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
- data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
- data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
- data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
- data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
- data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
- data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
- data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
- data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
- data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
- data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
- data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
- data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
- data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
- data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
- data/pkgs/tile-0.8.2/doc/image.n +81 -0
- data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
- data/pkgs/tile-0.8.2/doc/label.n +75 -0
- data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
- data/pkgs/tile-0.8.2/doc/man.macros +239 -0
- data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
- data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
- data/pkgs/tile-0.8.2/doc/paned.n +95 -0
- data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
- data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
- data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
- data/pkgs/tile-0.8.2/doc/separator.n +30 -0
- data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
- data/pkgs/tile-0.8.2/doc/style.n +119 -0
- data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
- data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
- data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
- data/pkgs/tile-0.8.2/doc/widget.n +227 -0
- data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
- data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
- data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
- data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
- data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
- data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
- data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
- data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
- data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
- data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
- data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
- data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
- data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
- data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
- data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
- data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
- data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
- data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
- data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
- data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
- data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
- data/pkgs/tile-0.8.2/entry.o +0 -0
- data/pkgs/tile-0.8.2/frame.o +0 -0
- data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
- data/pkgs/tile-0.8.2/generic/TODO +493 -0
- data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
- data/pkgs/tile-0.8.2/generic/blink.c +168 -0
- data/pkgs/tile-0.8.2/generic/button.c +858 -0
- data/pkgs/tile-0.8.2/generic/cache.c +354 -0
- data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
- data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
- data/pkgs/tile-0.8.2/generic/configure +10334 -0
- data/pkgs/tile-0.8.2/generic/configure.in +100 -0
- data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
- data/pkgs/tile-0.8.2/generic/frame.c +648 -0
- data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
- data/pkgs/tile-0.8.2/generic/image.c +416 -0
- data/pkgs/tile-0.8.2/generic/label.c +663 -0
- data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
- data/pkgs/tile-0.8.2/generic/manager.c +554 -0
- data/pkgs/tile-0.8.2/generic/manager.h +91 -0
- data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
- data/pkgs/tile-0.8.2/generic/paned.c +958 -0
- data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
- data/pkgs/tile-0.8.2/generic/progress.c +549 -0
- data/pkgs/tile-0.8.2/generic/scale.c +526 -0
- data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
- data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
- data/pkgs/tile-0.8.2/generic/separator.c +132 -0
- data/pkgs/tile-0.8.2/generic/square.c +306 -0
- data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
- data/pkgs/tile-0.8.2/generic/tile.c +296 -0
- data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
- data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
- data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
- data/pkgs/tile-0.8.2/generic/trace.c +145 -0
- data/pkgs/tile-0.8.2/generic/track.c +174 -0
- data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
- data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
- data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
- data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
- data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
- data/pkgs/tile-0.8.2/generic/widget.c +785 -0
- data/pkgs/tile-0.8.2/generic/widget.h +263 -0
- data/pkgs/tile-0.8.2/image.o +0 -0
- data/pkgs/tile-0.8.2/label.o +0 -0
- data/pkgs/tile-0.8.2/layout.o +0 -0
- data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
- data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
- data/pkgs/tile-0.8.2/library/button.tcl +85 -0
- data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
- data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
- data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
- data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
- data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
- data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
- data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
- data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
- data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
- data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
- data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
- data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
- data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
- data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
- data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
- data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
- data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
- data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
- data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
- data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
- data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
- data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
- data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
- data/pkgs/tile-0.8.2/libttkstub.a +0 -0
- data/pkgs/tile-0.8.2/license.terms +24 -0
- data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
- data/pkgs/tile-0.8.2/manager.o +0 -0
- data/pkgs/tile-0.8.2/notebook.o +0 -0
- data/pkgs/tile-0.8.2/paned.o +0 -0
- data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
- data/pkgs/tile-0.8.2/progress.o +0 -0
- data/pkgs/tile-0.8.2/scale.o +0 -0
- data/pkgs/tile-0.8.2/scroll.o +0 -0
- data/pkgs/tile-0.8.2/scrollbar.o +0 -0
- data/pkgs/tile-0.8.2/separator.o +0 -0
- data/pkgs/tile-0.8.2/tagset.o +0 -0
- data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
- data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
- data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
- data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
- data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
- data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
- data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
- data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
- data/pkgs/tile-0.8.2/tests/entry.test +285 -0
- data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
- data/pkgs/tile-0.8.2/tests/image.test +94 -0
- data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
- data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
- data/pkgs/tile-0.8.2/tests/layout.test +33 -0
- data/pkgs/tile-0.8.2/tests/misc.test +35 -0
- data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
- data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
- data/pkgs/tile-0.8.2/tests/paned.test +298 -0
- data/pkgs/tile-0.8.2/tests/progress.test +92 -0
- data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
- data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
- data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
- data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
- data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
- data/pkgs/tile-0.8.2/tests/tile.test +674 -0
- data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
- data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
- data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
- data/pkgs/tile-0.8.2/tests/validate.test +278 -0
- data/pkgs/tile-0.8.2/tile.o +0 -0
- data/pkgs/tile-0.8.2/tkElements.o +0 -0
- data/pkgs/tile-0.8.2/tkTheme.o +0 -0
- data/pkgs/tile-0.8.2/tkstate.o +0 -0
- data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
- data/pkgs/tile-0.8.2/trace.o +0 -0
- data/pkgs/tile-0.8.2/track.o +0 -0
- data/pkgs/tile-0.8.2/treeview.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
- data/pkgs/tile-0.8.2/widget.o +0 -0
- data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
- data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
- data/pkgs/tile-0.8.2/win/monitor.c +164 -0
- data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
- data/pkgs/tile-0.8.2/win/rules.vc +512 -0
- data/pkgs/tile-0.8.2/win/tile.rc +40 -0
- data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
- data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
- data/spec/app_spec.rb +48 -0
- data/spec/customer_spec.rb +31 -0
- data/spec/fixtures/graph.expectation +18 -0
- data/spec/payment_spec.rb +19 -0
- data/spec/pratt_spec.rb +148 -0
- data/spec/project_spec.rb +163 -0
- data/spec/rcov.opts +0 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/whence_spec.rb +54 -0
- data/tasks/pratt.rb +84 -0
- data/templates/model.eruby +12 -0
- data/templates/spec.eruby +8 -0
- data/views/env.rb +22 -0
- data/views/graph.eruby +20 -0
- data/views/invoice.eruby +148 -0
- data/views/main.rb +92 -0
- data/views/pid.eruby +3 -0
- data/views/pop.rb +94 -0
- data/views/pop2.rb +75 -0
- data/views/raw.eruby +11 -0
- metadata +390 -0
@@ -0,0 +1,604 @@
|
|
1
|
+
<manpage cat="cmd" id="treeview" title="treeview" version="0.5">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!--
|
4
|
+
Copyright (c) 2004 Joe English
|
5
|
+
-->
|
6
|
+
<?TROFF.TH title="treeview" section="n" date="0.5" source="tile" manual="Tile Widget Set" ?>
|
7
|
+
<namesection>
|
8
|
+
<name>ttk::treeview</name>
|
9
|
+
<desc>hierarchical multicolumn data display widget</desc>
|
10
|
+
</namesection>
|
11
|
+
<synopsis>
|
12
|
+
<syntax>
|
13
|
+
<b>ttk::treeview</b> <m>pathname</m> ?<m>options</m>?
|
14
|
+
</syntax>
|
15
|
+
</synopsis>
|
16
|
+
<section>
|
17
|
+
<title>DESCRIPTION</title>
|
18
|
+
<p>The treeview widget displays a hierarchical collection of items.
|
19
|
+
Each item has a textual label, an optional image,
|
20
|
+
and an optional list of data values.
|
21
|
+
The data values are displayed in successive columns after
|
22
|
+
the tree label.
|
23
|
+
</p>
|
24
|
+
<p>The order in which data values are displayed may be controlled
|
25
|
+
by setting the <b>-displaycolumns</b> widget option.
|
26
|
+
The tree widget can also display column headings.
|
27
|
+
Columns may be accessed by number or by symbolic names
|
28
|
+
listed in the <b>-columns</b> widget option;
|
29
|
+
see <ref refid="column-identifiers">COLUMN IDENTIFIERS</ref>.
|
30
|
+
</p>
|
31
|
+
<p>Each item is identified by a unique name.
|
32
|
+
The widget will generate item IDs if they are not supplied by the caller.
|
33
|
+
There is a distinguished root item, named <b>{}</b>.
|
34
|
+
The root item itself is not displayed;
|
35
|
+
its children appear at the top level of the hierarchy.
|
36
|
+
</p>
|
37
|
+
<p>Each item also has a list of <i>tags</i>,
|
38
|
+
which can be used to associate event bindings with individual items
|
39
|
+
and control the appearance of the item.
|
40
|
+
</p>
|
41
|
+
<p>Treeview widgets support horizontal and vertical scrolling with the
|
42
|
+
standard <b>-[xy]scrollcommand</b> options
|
43
|
+
and <b>[xy]view</b> widget commands.
|
44
|
+
</p>
|
45
|
+
</section>
|
46
|
+
<section>
|
47
|
+
<title>STANDARD OPTIONS</title>
|
48
|
+
<sl cat="stdopt" cols="4">
|
49
|
+
<li>-class</li>
|
50
|
+
<li>-cursor</li>
|
51
|
+
<li>-style</li>
|
52
|
+
<li>-takefocus</li>
|
53
|
+
<li>-xscrollcommand</li>
|
54
|
+
<li>-yscrollcommand</li>
|
55
|
+
</sl>
|
56
|
+
</section>
|
57
|
+
<section>
|
58
|
+
<title>WIDGET OPTIONS</title>
|
59
|
+
<optionlist>
|
60
|
+
<optiondef>
|
61
|
+
<name>-columns</name>
|
62
|
+
<dbname>columns</dbname>
|
63
|
+
<dbclass>Columns</dbclass>
|
64
|
+
<desc>A list of column identifiers,
|
65
|
+
specifying the number of columns and their names.
|
66
|
+
</desc>
|
67
|
+
</optiondef>
|
68
|
+
<optiondef>
|
69
|
+
<name>-displaycolumns</name>
|
70
|
+
<dbname>displayColumns</dbname>
|
71
|
+
<dbclass>DisplayColumns</dbclass>
|
72
|
+
<desc>A list of column identifiers
|
73
|
+
(either symbolic names or integer indices)
|
74
|
+
specifying which data columns are displayed
|
75
|
+
and the order in which they appear,
|
76
|
+
or the string <b>#all</b>.
|
77
|
+
<br/>If set to <b>#all</b> (the default), all columns are shown in the order given.
|
78
|
+
</desc>
|
79
|
+
</optiondef>
|
80
|
+
<optiondef>
|
81
|
+
<name>-height</name>
|
82
|
+
<dbname>height</dbname>
|
83
|
+
<dbclass>Height</dbclass>
|
84
|
+
<desc>Specifies the number of rows which should be visible.
|
85
|
+
Note:
|
86
|
+
the requested width is determined from the sum of the column widths.
|
87
|
+
</desc>
|
88
|
+
</optiondef>
|
89
|
+
<optiondef>
|
90
|
+
<name>-padding</name>
|
91
|
+
<dbname>padding</dbname>
|
92
|
+
<dbclass>Padding</dbclass>
|
93
|
+
<desc>Specifies the internal padding for the widget.
|
94
|
+
The padding is a list of up to four length specifications;
|
95
|
+
see <b>Ttk_GetPaddingFromObj()</b> for details.
|
96
|
+
</desc>
|
97
|
+
</optiondef>
|
98
|
+
<optiondef>
|
99
|
+
<name>-selectmode</name>
|
100
|
+
<dbname>selectMode</dbname>
|
101
|
+
<dbclass>SelectMode</dbclass>
|
102
|
+
<desc>Controls how the built-in class bindings manage the selection.
|
103
|
+
One of <b>extended</b>, <b>browse</b>, or <b>none</b>.
|
104
|
+
<br/>If set to <b>extended</b> (the default), multiple items may be selected.
|
105
|
+
If <b>browse</b>, only a single item will be selected at a time.
|
106
|
+
If <b>none</b>, the selection will not be changed.
|
107
|
+
<br/>Note that application code and tag bindings can set the selection
|
108
|
+
however they wish, regardless of the value of <b>-selectmode</b>.
|
109
|
+
</desc>
|
110
|
+
</optiondef>
|
111
|
+
<optiondef>
|
112
|
+
<name>-show</name>
|
113
|
+
<dbname>show</dbname>
|
114
|
+
<dbclass>Show</dbclass>
|
115
|
+
<desc>A list containing zero or more of the following values, specifying
|
116
|
+
which elements of the tree to display.
|
117
|
+
<?TROFF.RS?><dl>
|
118
|
+
<dle>
|
119
|
+
<dt><b>tree</b></dt>
|
120
|
+
<dd>Display tree labels in column #0.
|
121
|
+
</dd>
|
122
|
+
</dle>
|
123
|
+
<dle>
|
124
|
+
<dt><b>headings</b></dt>
|
125
|
+
<dd>Display the heading row.
|
126
|
+
</dd>
|
127
|
+
</dle>
|
128
|
+
</dl><p>The default is <b>tree headings</b>, i.e., show all elements.
|
129
|
+
</p><p><b>NOTE:</b> Column #0 always refers to the tree column,
|
130
|
+
even if <b>-show tree</b> is not specified.
|
131
|
+
</p><?TROFF.RE?></desc>
|
132
|
+
</optiondef>
|
133
|
+
</optionlist>
|
134
|
+
</section>
|
135
|
+
<section>
|
136
|
+
<title>WIDGET COMMAND</title>
|
137
|
+
<dl>
|
138
|
+
<dle>
|
139
|
+
<dt><m>pathname</m> <b>bbox</b> <m>item</m> ?<m>column</m>?</dt>
|
140
|
+
<dd>Returns the bounding box (relative to the treeview widget's window)
|
141
|
+
of the specified <i>item</i>
|
142
|
+
in the form <i>x y width height</i>.
|
143
|
+
If <i>column</i> is specified, returns the bounding box of that cell.
|
144
|
+
If the <i>item</i> is not visible
|
145
|
+
(i.e., if it is a descendant of a closed item or is scrolled offscreen),
|
146
|
+
returns the empty list.
|
147
|
+
</dd>
|
148
|
+
</dle>
|
149
|
+
<dle>
|
150
|
+
<dt><m>pathname</m> <b>cget</b> <m>option</m></dt>
|
151
|
+
<dd>Returns the current value of the specified <i>option</i>; see <i>widget(n)</i>.
|
152
|
+
</dd>
|
153
|
+
</dle>
|
154
|
+
<dle>
|
155
|
+
<dt><m>pathname</m> <b>children</b> <m>item</m> ?<m>newchildren</m>?</dt>
|
156
|
+
<dd>If <i>newchildren</i> is not specified,
|
157
|
+
returns the list of children belonging to <i>item</i>.
|
158
|
+
<p>If <i>newchildren</i> is specified, replaces <i>item</i>'s child list
|
159
|
+
with <i>newchildren</i>.
|
160
|
+
Items in the old child list not present in the new child list
|
161
|
+
are detached from the tree.
|
162
|
+
None of the items in <i>newchildren</i> may be an ancestor
|
163
|
+
of <i>item</i>.
|
164
|
+
</p></dd>
|
165
|
+
</dle>
|
166
|
+
<dle>
|
167
|
+
<dt><m>pathname</m> <b>column</b> <m>column</m> ?<m>-option</m> ?<m>value -option value...</m>?</dt>
|
168
|
+
<dd>Query or modify the options for the specified <i>column</i>.
|
169
|
+
If no <i>-option</i> is specified,
|
170
|
+
returns a dictionary of option/value pairs.
|
171
|
+
If a single <i>-option</i> is specified,
|
172
|
+
returns the value of that option.
|
173
|
+
Otherwise, the options are updated with the specified values.
|
174
|
+
The following options may be set on each column:
|
175
|
+
<dl>
|
176
|
+
<dle>
|
177
|
+
<dt><b>-id</b> <m>name</m></dt>
|
178
|
+
<dd>The column name. This is a read-only option.
|
179
|
+
For example, [<i>$pathname</i> <b>column #</b><i>n</i> <b>-id</b>]
|
180
|
+
returns the data column associated with display column #<i>n</i>.
|
181
|
+
</dd>
|
182
|
+
</dle>
|
183
|
+
<dle>
|
184
|
+
<dt><b>-anchor</b></dt>
|
185
|
+
<dd>Specifies how the text in this column should be aligned
|
186
|
+
with respect to the cell. One of
|
187
|
+
<b>n</b>, <b>ne</b>, <b>e</b>, <b>se</b>,
|
188
|
+
<b>s</b>, <b>sw</b>, <b>w</b>, <b>nw</b>, or <b>center</b>.
|
189
|
+
</dd>
|
190
|
+
</dle>
|
191
|
+
<dle>
|
192
|
+
<dt><b>-minwidth</b></dt>
|
193
|
+
<dd>The minimum width of the column in pixels.
|
194
|
+
The treeview widget will not make the column any smaller than
|
195
|
+
<b>-minwidth</b> when the widget is resized or the user drags a
|
196
|
+
column separator.
|
197
|
+
</dd>
|
198
|
+
</dle>
|
199
|
+
<dle>
|
200
|
+
<dt><b>-stretch</b></dt>
|
201
|
+
<dd>Specifies whether or not the column's width should be adjusted
|
202
|
+
when the widget is resized.
|
203
|
+
</dd>
|
204
|
+
</dle>
|
205
|
+
<dle>
|
206
|
+
<dt><b>-width</b> <m>w</m></dt>
|
207
|
+
<dd>The width of the column in pixels. Default is something reasonable,
|
208
|
+
probably 200 or so.
|
209
|
+
</dd>
|
210
|
+
</dle>
|
211
|
+
</dl><p>Use <i>pathname column #0</i> to configure the tree column.
|
212
|
+
</p></dd>
|
213
|
+
</dle>
|
214
|
+
<dle>
|
215
|
+
<dt><m>pathname</m> <b>configure</b> ?<m>option</m>? ?<m>value option value ...</m>?</dt>
|
216
|
+
<dd>Modify or query widget options; see <i>widget(n)</i>.
|
217
|
+
</dd>
|
218
|
+
</dle>
|
219
|
+
<dle>
|
220
|
+
<dt><m>pathname</m> <b>delete</b> <m>itemList</m></dt>
|
221
|
+
<dd>Deletes each of the items in <i>itemList</i> and all of their descendants.
|
222
|
+
The root item may not be deleted.
|
223
|
+
See also: <b>detach</b>.
|
224
|
+
</dd>
|
225
|
+
</dle>
|
226
|
+
<dle>
|
227
|
+
<dt><m>pathname</m> <b>detach</b> <m>itemList</m></dt>
|
228
|
+
<dd>Unlinks all of the specified items in <i>itemList</i> from the tree.
|
229
|
+
The items and all of their descendants are still present
|
230
|
+
and may be reinserted at another point in the tree
|
231
|
+
but will not be displayed.
|
232
|
+
The root item may not be detached.
|
233
|
+
See also: <b>delete</b>.
|
234
|
+
</dd>
|
235
|
+
</dle>
|
236
|
+
<dle>
|
237
|
+
<dt><m>pathname</m> <b>exists</b> <m>item</m></dt>
|
238
|
+
<dd>Returns 1 if the specified <i>item</i> is present in the tree,
|
239
|
+
0 otherwise.
|
240
|
+
</dd>
|
241
|
+
</dle>
|
242
|
+
<dle>
|
243
|
+
<dt><m>pathname</m> <b>focus</b> ?<m>item</m>?</dt>
|
244
|
+
<dd>If <i>item</i> is specified, sets the focus item to <i>item</i>.
|
245
|
+
Otherwise, returns the current focus item, or <b>{}</b> if there is none.
|
246
|
+
</dd>
|
247
|
+
</dle>
|
248
|
+
<dle>
|
249
|
+
<dt><m>pathname</m> <b>heading</b> <m>column</m> ?<m>-option</m> ?<m>value -option value...</m>?</dt>
|
250
|
+
<dd>Query or modify the heading options for the specified <i>column</i>.
|
251
|
+
Valid options are:
|
252
|
+
<dl>
|
253
|
+
<dle>
|
254
|
+
<dt><b>-text</b> <m>text</m></dt>
|
255
|
+
<dd>The text to display in the column heading.
|
256
|
+
</dd>
|
257
|
+
</dle>
|
258
|
+
<dle>
|
259
|
+
<dt><b>-image</b> <m>imageName</m></dt>
|
260
|
+
<dd>Specifies an image to display to the right of the column heading.
|
261
|
+
</dd>
|
262
|
+
</dle>
|
263
|
+
<dle>
|
264
|
+
<dt><b>-anchor</b> <m>anchor</m></dt>
|
265
|
+
<dd>Specifies how the heading text should be aligned.
|
266
|
+
One of the standard Tk anchor values.
|
267
|
+
</dd>
|
268
|
+
</dle>
|
269
|
+
<dle>
|
270
|
+
<dt><b>-command</b> <m>script</m></dt>
|
271
|
+
<dd>A script to evaluate when the heading label is pressed.
|
272
|
+
</dd>
|
273
|
+
</dle>
|
274
|
+
</dl><p>Use <i>pathname heading #0</i> to configure the tree column heading.
|
275
|
+
</p></dd>
|
276
|
+
</dle>
|
277
|
+
<dle>
|
278
|
+
<dt><m>pathname</m> <b>identify</b> <m>component x y</m></dt>
|
279
|
+
<dd>Returns a description of the specified <i>component</i>
|
280
|
+
under the point given by <i>x</i> and <i>y</i>,
|
281
|
+
or the empty string if no such <i>component</i> is present at that position.
|
282
|
+
The following subcommands are supported:
|
283
|
+
<?TROFF.RS?><commandlist>
|
284
|
+
<commanddef>
|
285
|
+
<command><m>pathname</m> <b>identify row</b> <m>x y</m></command>
|
286
|
+
<desc>Returns the item ID of the item at position <i>y</i>.
|
287
|
+
</desc>
|
288
|
+
</commanddef>
|
289
|
+
<commanddef>
|
290
|
+
<command><m>pathname</m> <b>identify column</b> <m>x y</m></command>
|
291
|
+
<desc>Returns the data column identifier of the cell at position <i>x</i>.
|
292
|
+
The tree column has ID <b>#0</b>.
|
293
|
+
</desc>
|
294
|
+
</commanddef>
|
295
|
+
</commandlist><p>See <ref refid="column-identifiers">COLUMN IDENTIFIERS</ref> for a discussion of display columns
|
296
|
+
and data columns.
|
297
|
+
</p><?TROFF.RE?></dd>
|
298
|
+
</dle>
|
299
|
+
<dle>
|
300
|
+
<dt><m>pathname</m> <b>index</b> <m>item</m></dt>
|
301
|
+
<dd>Returns the integer index of <i>item</i> within its parent's list of children.
|
302
|
+
</dd>
|
303
|
+
</dle>
|
304
|
+
<dle>
|
305
|
+
<dt><m>pathname</m> <b>insert</b> <m>parent</m> <m>index</m> ?<b>-id</b> <m>id</m>? <m>options...</m></dt>
|
306
|
+
<dd>Creates a new item.
|
307
|
+
<i>parent</i> is the item ID of the parent item,
|
308
|
+
or the empty string <b>{}</b>
|
309
|
+
to create a new top-level item.
|
310
|
+
<i>index</i> is an integer, or the value <b>end</b>, specifying where in the
|
311
|
+
list of <i>parent</i>'s children to insert the new item.
|
312
|
+
If <i>index</i> is less than or equal to zero,
|
313
|
+
the new node is inserted at the beginning;
|
314
|
+
if <i>index</i> is greater than or equal to the current number of children,
|
315
|
+
it is inserted at the end.
|
316
|
+
If <b>-id</b> is specified, it is used as the item identifier;
|
317
|
+
<i>id</i> must not already exist in the tree.
|
318
|
+
Otherwise, a new unique identifier is generated.
|
319
|
+
<p><i>pathname</i> <b>insert</b> returns the item identifier of the
|
320
|
+
newly created item.
|
321
|
+
See <ref refid="item-options">ITEM OPTIONS</ref> for the list of available options.
|
322
|
+
</p></dd>
|
323
|
+
</dle>
|
324
|
+
<dle>
|
325
|
+
<dt><m>pathname</m> <b>instate</b> <m>statespec</m> ?<m>script</m>?</dt>
|
326
|
+
<dd>Test the widget state; see <i>widget(n)</i>.
|
327
|
+
</dd>
|
328
|
+
</dle>
|
329
|
+
<dle>
|
330
|
+
<dt><m>pathname</m> <b>item</b> <m>item</m> ?<m>-option</m> ?<m>value -option value...</m>?</dt>
|
331
|
+
<dd>Query or modify the options for the specified <i>item</i>.
|
332
|
+
If no <i>-option</i> is specified,
|
333
|
+
returns a dictionary of option/value pairs.
|
334
|
+
If a single <i>-option</i> is specified,
|
335
|
+
returns the value of that option.
|
336
|
+
Otherwise, the item's options are updated with the specified values.
|
337
|
+
See <ref refid="item-options">ITEM OPTIONS</ref> for the list of available options.
|
338
|
+
</dd>
|
339
|
+
</dle>
|
340
|
+
<dle>
|
341
|
+
<dt><m>pathname</m> <b>move</b> <m>item parent index</m></dt>
|
342
|
+
<dd>Moves <i>item</i> to position <i>index</i> in <i>parent</i>'s list of children.
|
343
|
+
It is illegal to move an item under one of its descendants.
|
344
|
+
<p>If <i>index</i> is less than or equal to zero, <i>item</i> is moved
|
345
|
+
to the beginning; if greater than or equal to the number of children,
|
346
|
+
it's moved to the end.
|
347
|
+
</p></dd>
|
348
|
+
</dle>
|
349
|
+
<dle>
|
350
|
+
<dt><m>pathname</m> <b>next</b> <m>item</m></dt>
|
351
|
+
<dd>Returns the identifier of <i>item</i>'s next sibling,
|
352
|
+
or <b>{}</b> if <i>item</i> is the last child of its parent.
|
353
|
+
</dd>
|
354
|
+
</dle>
|
355
|
+
<dle>
|
356
|
+
<dt><m>pathname</m> <b>parent</b> <m>item</m></dt>
|
357
|
+
<dd>Returns the ID of the parent of <i>item</i>,
|
358
|
+
or <b>{}</b> if <i>item</i> is at the top level of the hierarchy.
|
359
|
+
</dd>
|
360
|
+
</dle>
|
361
|
+
<dle>
|
362
|
+
<dt><m>pathname</m> <b>prev</b> <m>item</m></dt>
|
363
|
+
<dd>Returns the identifier of <i>item</i>'s previous sibling,
|
364
|
+
or <b>{}</b> if <i>item</i> is the first child of its parent.
|
365
|
+
</dd>
|
366
|
+
</dle>
|
367
|
+
<dle>
|
368
|
+
<dt><m>pathname</m> <b>see</b> <m>item</m></dt>
|
369
|
+
<dd>Ensure that <i>item</i> is visible:
|
370
|
+
sets all of <i>item</i>'s ancestors to <b>-open true</b>,
|
371
|
+
and scrolls the widget if necessary so that <i>item</i> is
|
372
|
+
within the visible portion of the tree.
|
373
|
+
</dd>
|
374
|
+
</dle>
|
375
|
+
<dle>
|
376
|
+
<dt><m>pathname</m> <b>selection</b> ?<m>selop</m> <m>itemList</m>?</dt>
|
377
|
+
<dd>If <i>selop</i> is not specified, returns the list of selected items.
|
378
|
+
Otherwise, <i>selop</i> is one of the following:
|
379
|
+
<commandlist>
|
380
|
+
<commanddef>
|
381
|
+
<command><m>pathname</m> <b>selection set</b> <m>itemList</m></command>
|
382
|
+
<desc><i>itemList</i> becomes the new selection.
|
383
|
+
</desc>
|
384
|
+
</commanddef>
|
385
|
+
<commanddef>
|
386
|
+
<command><m>pathname</m> <b>selection add</b> <m>itemList</m></command>
|
387
|
+
<desc>Add <i>itemList</i> to the selection
|
388
|
+
</desc>
|
389
|
+
</commanddef>
|
390
|
+
<commanddef>
|
391
|
+
<command><m>pathname</m> <b>selection remove</b> <m>itemList</m></command>
|
392
|
+
<desc>Remove <i>itemList</i> from the selection
|
393
|
+
</desc>
|
394
|
+
</commanddef>
|
395
|
+
<commanddef>
|
396
|
+
<command><m>pathname</m> <b>selection toggle</b> <m>itemList</m></command>
|
397
|
+
<desc>Toggle the selection state of each item in <i>itemList</i>.
|
398
|
+
</desc>
|
399
|
+
</commanddef>
|
400
|
+
</commandlist></dd>
|
401
|
+
</dle>
|
402
|
+
<dle>
|
403
|
+
<dt><m>pathname</m> <b>set</b> <m>item</m> ?<m>column</m> ?<m>value</m>??</dt>
|
404
|
+
<dd>With one argument, returns a dictionary of column/value pairs
|
405
|
+
for the specified <i>item</i>.
|
406
|
+
With two arguments, returns the current value of the specified <i>column</i>.
|
407
|
+
With three arguments, sets the value of column <i>column</i>
|
408
|
+
in item <i>item</i> to the specified <i>value</i>.
|
409
|
+
See also <ref refid="column-identifiers">COLUMN IDENTIFIERS</ref>.
|
410
|
+
</dd>
|
411
|
+
</dle>
|
412
|
+
<dle>
|
413
|
+
<dt><m>pathname</m> <b>state</b> ?<m>stateSpec</m>?</dt>
|
414
|
+
<dd>Modify or query the widget state; see <i>widget(n)</i>.
|
415
|
+
</dd>
|
416
|
+
</dle>
|
417
|
+
<dle>
|
418
|
+
<dt><m>pathName</m> <b>tag</b> <m>args...</m></dt>
|
419
|
+
<dd><dl>
|
420
|
+
<dle>
|
421
|
+
<dt><m>pathName</m> <b>tag bind</b> <m>tagName</m> ?<m>sequence</m> ?<m>script</m>??</dt>
|
422
|
+
<dd>Add a Tk binding script for the event sequence <i>sequence</i>
|
423
|
+
to the tag <i>tagName</i>. When an X event is delivered to an item,
|
424
|
+
binding scripts for each of the item's <b>-tags</b> are evaluated
|
425
|
+
in order as per <i>bindtags(n)</i>.
|
426
|
+
<p><b><KeyPress></b>, <b><KeyRelease></b>, and virtual events
|
427
|
+
are sent to the focus item.
|
428
|
+
<b><ButtonPress></b>, <b><ButtonRelease></b>, and <b><Motion></b> events
|
429
|
+
are sent to the item under the mouse pointer.
|
430
|
+
No other event types are supported.
|
431
|
+
</p><p>The binding <i>script</i> undergoes <b>%</b>-substitutions before
|
432
|
+
evaluation; see <b>bind(n)</b> for details.
|
433
|
+
</p></dd>
|
434
|
+
</dle>
|
435
|
+
<dle>
|
436
|
+
<dt><m>pathName</m> <b>tag configure</b> <m>tagName</m> ?<m>option</m>? ?<m>value option value...</m>?</dt>
|
437
|
+
<dd>Query or modify the options for the specified <i>tagName</i>.
|
438
|
+
If one or more <i>option/value</i> pairs are specified,
|
439
|
+
sets the value of those options for the specified tag.
|
440
|
+
If a single <i>option</i> is specified,
|
441
|
+
returns the value of that option
|
442
|
+
(or the empty string if the option has not been specified for <i>tagName</i>).
|
443
|
+
With no additional arguments,
|
444
|
+
returns a dictionary of the option settings for <i>tagName</i>.
|
445
|
+
See <ref refid="tag-options">TAG OPTIONS</ref> for the list of available options.
|
446
|
+
</dd>
|
447
|
+
</dle>
|
448
|
+
</dl></dd>
|
449
|
+
</dle>
|
450
|
+
<dle>
|
451
|
+
<dt><m>pathName</m> <b>xview</b> <m>args</m></dt>
|
452
|
+
<dd>Standard command for horizontal scrolling; see <i>widget(n)</i>.
|
453
|
+
</dd>
|
454
|
+
</dle>
|
455
|
+
<dle>
|
456
|
+
<dt><m>pathName</m> <b>yview</b> <m>args</m></dt>
|
457
|
+
<dd>Standard command for vertical scrolling; see <i>widget(n)</i>.
|
458
|
+
|
459
|
+
</dd>
|
460
|
+
</dle>
|
461
|
+
</dl>
|
462
|
+
</section>
|
463
|
+
<section id="item-options">
|
464
|
+
<title>ITEM OPTIONS</title>
|
465
|
+
<p>The following item options may be specified for items
|
466
|
+
in the <b>insert</b> and <b>item</b> widget commands.
|
467
|
+
</p>
|
468
|
+
<optionlist>
|
469
|
+
<optiondef>
|
470
|
+
<name>-text</name>
|
471
|
+
<dbname>text</dbname>
|
472
|
+
<dbclass>Text</dbclass>
|
473
|
+
<desc>The textual label to display for the item.
|
474
|
+
</desc>
|
475
|
+
</optiondef>
|
476
|
+
<optiondef>
|
477
|
+
<name>-image</name>
|
478
|
+
<dbname>image</dbname>
|
479
|
+
<dbclass>Image</dbclass>
|
480
|
+
<desc>A Tk image, displayed to the left of the label.
|
481
|
+
</desc>
|
482
|
+
</optiondef>
|
483
|
+
<optiondef>
|
484
|
+
<name>-values</name>
|
485
|
+
<dbname>values</dbname>
|
486
|
+
<dbclass>Values</dbclass>
|
487
|
+
<desc>The list of values associated with the item.
|
488
|
+
<br/>Each item should have the same number of values as
|
489
|
+
the <b>-columns</b> widget option.
|
490
|
+
If there are fewer values than columns,
|
491
|
+
the remaining values are assumed empty.
|
492
|
+
If there are more values than columns,
|
493
|
+
the extra values are ignored.
|
494
|
+
</desc>
|
495
|
+
</optiondef>
|
496
|
+
<optiondef>
|
497
|
+
<name>-open</name>
|
498
|
+
<dbname>open</dbname>
|
499
|
+
<dbclass>Open</dbclass>
|
500
|
+
<desc>A boolean value indicating whether the item's children
|
501
|
+
should be displayed (<b>-open true</b>) or hidden (<b>-open false</b>).
|
502
|
+
</desc>
|
503
|
+
</optiondef>
|
504
|
+
<optiondef>
|
505
|
+
<name>-tags</name>
|
506
|
+
<dbname>tags</dbname>
|
507
|
+
<dbclass>Tags</dbclass>
|
508
|
+
<desc>A list of tags associated with this item.
|
509
|
+
</desc>
|
510
|
+
</optiondef>
|
511
|
+
</optionlist>
|
512
|
+
</section>
|
513
|
+
<section id="tag-options">
|
514
|
+
<title>TAG OPTIONS</title>
|
515
|
+
<p>The following options may be specified on tags:
|
516
|
+
</p>
|
517
|
+
<dl>
|
518
|
+
<dle>
|
519
|
+
<dt>-foreground</dt>
|
520
|
+
<dd>Specifies the text foreground color.
|
521
|
+
</dd>
|
522
|
+
</dle>
|
523
|
+
<dle>
|
524
|
+
<dt>-background</dt>
|
525
|
+
<dd>Specifies the cell or item background color.
|
526
|
+
</dd>
|
527
|
+
</dle>
|
528
|
+
<dle>
|
529
|
+
<dt>-font</dt>
|
530
|
+
<dd>Specifies the font to use when drawing text.
|
531
|
+
</dd>
|
532
|
+
</dle>
|
533
|
+
<dle>
|
534
|
+
<dt>-image</dt>
|
535
|
+
<dd>Specifies the item image, in case the item's <b>-image</b> option is empty.
|
536
|
+
</dd>
|
537
|
+
</dle>
|
538
|
+
</dl>
|
539
|
+
<p><i>(@@@ TODO: sort out order of precedence for options)</i>
|
540
|
+
</p>
|
541
|
+
</section>
|
542
|
+
<section id="column-identifiers">
|
543
|
+
<title>COLUMN IDENTIFIERS</title>
|
544
|
+
<p>Column identifiers take any of the following forms:
|
545
|
+
</p>
|
546
|
+
<ul>
|
547
|
+
<li>A symbolic name from the list of <b>-columns</b>.
|
548
|
+
</li>
|
549
|
+
<li>An integer <i>n</i>, specifying the <i>n</i>th data column.
|
550
|
+
</li>
|
551
|
+
<li>A string of the form <b>#</b><i>n</i>, where <i>n</i> is an integer,
|
552
|
+
specifying the <i>n</i>th display column.
|
553
|
+
</li>
|
554
|
+
</ul>
|
555
|
+
<p><b>NOTE:</b>
|
556
|
+
Item <b>-values</b> may be displayed in a different order than
|
557
|
+
the order in which they are stored.
|
558
|
+
</p>
|
559
|
+
<p><b>NOTE:</b> Column #0 always refers to the tree column,
|
560
|
+
even if <b>-show tree</b> is not specified.
|
561
|
+
</p>
|
562
|
+
<p>A <i>data column number</i> is an index into an item's <b>-values</b> list;
|
563
|
+
a <i>display column number</i> is the column number in the tree
|
564
|
+
where the values are displayed.
|
565
|
+
Tree labels are displayed in column #0.
|
566
|
+
If <b>-displaycolumns</b> is not set,
|
567
|
+
then data column <i>n</i> is displayed in display column <b>#</b><i>n+1</i>.
|
568
|
+
Again, <b>column #0 always refers to the tree column</b>.
|
569
|
+
</p>
|
570
|
+
</section>
|
571
|
+
<section>
|
572
|
+
<title>VIRTUAL EVENTS</title>
|
573
|
+
<p>The treeview widget generates the following virtual events.
|
574
|
+
</p>
|
575
|
+
<dl>
|
576
|
+
<dle>
|
577
|
+
<dt><<TreeviewSelect>></dt>
|
578
|
+
<dd>Generated whenever the selection changes.
|
579
|
+
</dd>
|
580
|
+
</dle>
|
581
|
+
<dle>
|
582
|
+
<dt><<TreeviewOpen>></dt>
|
583
|
+
<dd>Generated just before setting the focus item to <b>-open true</b>.
|
584
|
+
</dd>
|
585
|
+
</dle>
|
586
|
+
<dle>
|
587
|
+
<dt><<TreeviewClose>></dt>
|
588
|
+
<dd>Generated just after setting the focus item to <b>-open false</b>.
|
589
|
+
</dd>
|
590
|
+
</dle>
|
591
|
+
</dl>
|
592
|
+
<p>The <cmd>focus</cmd> and <cmd>selection</cmd> widget commands can be used
|
593
|
+
to determine the affected item or items.
|
594
|
+
In Tk 8.5, the affected item is also passed as the <b>-detail</b> field
|
595
|
+
of the virtual event.
|
596
|
+
</p>
|
597
|
+
</section>
|
598
|
+
<seealso>
|
599
|
+
<ref>widget(n)</ref>
|
600
|
+
<ref>listbox(n)</ref>
|
601
|
+
<ref>image(n)</ref>
|
602
|
+
<ref>bind(n)</ref>
|
603
|
+
</seealso>
|
604
|
+
</manpage>
|