Pratt 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,75 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH label n 0.2 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::label \- Display a text string and/or image
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
\fBttk::label\fR \fIpathName \fR?\fIoptions\fR?
|
|
11
|
+
.BE
|
|
12
|
+
.SH DESCRIPTION
|
|
13
|
+
A \fBlabel\fR widget displays a textual label and/or image.
|
|
14
|
+
The label may be linked to a Tcl variable
|
|
15
|
+
to automatically change the displayed text.
|
|
16
|
+
.SO
|
|
17
|
+
\-class \-compound \-cursor \-image
|
|
18
|
+
\-style \-takefocus \-text \-textvariable
|
|
19
|
+
\-underline \-width
|
|
20
|
+
.SE
|
|
21
|
+
.SH "OPTIONS"
|
|
22
|
+
.OP \-anchor anchor Anchor
|
|
23
|
+
Specifies how the information in the widget is positioned
|
|
24
|
+
relative to the inner margins. Legal values are
|
|
25
|
+
\fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR,
|
|
26
|
+
\fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, and \fBcenter\fR.
|
|
27
|
+
See also \fB-justify\fR.
|
|
28
|
+
.OP \-background frameColor FrameColor
|
|
29
|
+
The widget's background color.
|
|
30
|
+
If unspecified, the theme default is used.
|
|
31
|
+
.OP \-font font Font
|
|
32
|
+
Font to use for label text.
|
|
33
|
+
.OP \-foreground textColor TextColor
|
|
34
|
+
The widget's foreground color.
|
|
35
|
+
If unspecified, the theme default is used.
|
|
36
|
+
.OP \-justify justify Justify
|
|
37
|
+
If there are multiple lines of text, specifies how
|
|
38
|
+
the lines are laid out relative to one another.
|
|
39
|
+
One of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
|
|
40
|
+
See also \fB-anchor\fR.
|
|
41
|
+
.OP \-padding padding Padding
|
|
42
|
+
Specifies the amount of extra space to allocate for the widget.
|
|
43
|
+
The padding is a list of up to four length specifications
|
|
44
|
+
\fIleft top right bottom\fR.
|
|
45
|
+
If fewer than four elements are specified,
|
|
46
|
+
\fIbottom\fR defaults to \fItop\fR,
|
|
47
|
+
\fIright\fR defaults to \fIleft\fR, and
|
|
48
|
+
\fItop\fR defaults to \fIleft\fR.
|
|
49
|
+
.OP \-relief relief Relief
|
|
50
|
+
.\" Rewrite this:
|
|
51
|
+
Specifies the 3-D effect desired for the widget border.
|
|
52
|
+
Valid values are
|
|
53
|
+
\fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR, \fBsolid\fR,
|
|
54
|
+
and \fBsunken\fR.
|
|
55
|
+
.OP \-text text Text
|
|
56
|
+
Specifies a text string to be displayed inside the widget
|
|
57
|
+
(unless overridden by \fB-textvariable\fR).
|
|
58
|
+
.OP \-wraplength wrapLength WrapLength
|
|
59
|
+
Specifies the maximum line length (in pixels).
|
|
60
|
+
If this option is less than or equal to zero,
|
|
61
|
+
then automatic wrapping is not performed; otherwise
|
|
62
|
+
the text is split into lines such that no line is longer
|
|
63
|
+
than the specified value.
|
|
64
|
+
.SH "WIDGET COMMAND"
|
|
65
|
+
.TP
|
|
66
|
+
\fIpathName \fBcget\fR \fIoption\fR
|
|
67
|
+
.TP
|
|
68
|
+
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
|
69
|
+
.TP
|
|
70
|
+
\fIpathName \fBinstate \fIstatespec\fR ?\fIscript\fR?
|
|
71
|
+
.TP
|
|
72
|
+
\fIpathName \fBstate\fR ?\fIstateSpec\fR?
|
|
73
|
+
See \fIwidget(n)\fR
|
|
74
|
+
.SH "SEE ALSO"
|
|
75
|
+
widget(n)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'\" Copyright (c) 2005 Joe English
|
|
2
|
+
.so man.macros
|
|
3
|
+
.TH labelframe n 0.7 tile "Tile Widget Set"
|
|
4
|
+
.BS
|
|
5
|
+
.SH NAME
|
|
6
|
+
ttk::labelframe \- Container widget with optional label
|
|
7
|
+
.SH SYNOPSIS
|
|
8
|
+
\fBttk::labelframe\fR \fIpathName \fR?\fIoptions\fR?
|
|
9
|
+
.BE
|
|
10
|
+
.SH DESCRIPTION
|
|
11
|
+
A \fBlabelframe\fR widget is a container used to group other widgets together.
|
|
12
|
+
It has an optional label, which may be a plain text string or another widget.
|
|
13
|
+
.SO
|
|
14
|
+
\-class \-cursor \-takefocus \-style
|
|
15
|
+
.SE
|
|
16
|
+
.SH "OPTIONS"
|
|
17
|
+
'\" XXX: Currently included, but may go away:
|
|
18
|
+
'\" XXX: .OP -borderwidth borderWidth BorderWidth
|
|
19
|
+
'\" XXX: The desired width of the widget border. Default is theme-dependent.
|
|
20
|
+
'\" XXX: .OP -relief relief Relief
|
|
21
|
+
'\" XXX: One of the standard Tk border styles:
|
|
22
|
+
'\" XXX: \fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR,
|
|
23
|
+
'\" XXX: \fBsolid\fR, or \fBsunken\fR.
|
|
24
|
+
'\" XXX: Default is theme-dependent.
|
|
25
|
+
.OP -labelanchor labelAnchor LabelAnchor
|
|
26
|
+
Specifies where to place the label.
|
|
27
|
+
Allowed values are (clockwise from the top upper left corner):
|
|
28
|
+
\fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR,
|
|
29
|
+
\fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR.
|
|
30
|
+
The default value is theme-dependent.
|
|
31
|
+
'\" Alternate explanation: The first character must be one of n, s, e, or w
|
|
32
|
+
'\" and specifies which side the label should be placed on;
|
|
33
|
+
'\" the remaining characters specify how the label is aligned on that side.
|
|
34
|
+
'\" NOTE: Now allows other values as well; leave this undocumented for now
|
|
35
|
+
.OP -text text Text
|
|
36
|
+
Specifies the text of the label.
|
|
37
|
+
.OP -underline underline Underline
|
|
38
|
+
If set, specifies the integer index (0-based) of a character to
|
|
39
|
+
underline in the text string.
|
|
40
|
+
The underlined character is used for mnemonic activation
|
|
41
|
+
(see \fIkeynav(n)\fR).
|
|
42
|
+
Mnemonic activation for a \fBttk::labelframe\fR
|
|
43
|
+
sets the keyboard focus to the first child of the \fBttk::labelframe\fR widget.
|
|
44
|
+
.OP -padding padding Padding
|
|
45
|
+
Additional padding to include inside the border.
|
|
46
|
+
.OP -labelwidget labelWidget LabelWidget
|
|
47
|
+
The name of a widget to use for the label.
|
|
48
|
+
If set, overrides the \fB-text\fR option.
|
|
49
|
+
The \fB-labelwidget\fR must be a child of the \fBlabelframe\fR widget
|
|
50
|
+
or one of the \fBlabelframe\fR's ancestors, and must belong to the
|
|
51
|
+
same top-level widget as the \fBlabelframe\fR.
|
|
52
|
+
.OP -width width Width
|
|
53
|
+
If specified, the widget's requested width in pixels.
|
|
54
|
+
.OP -height height Height
|
|
55
|
+
If specified, the widget's requested height in pixels.
|
|
56
|
+
(See \fIttk::frame\fR for further notes on \fB-width\fR and \fB-height\fR).
|
|
57
|
+
.SH "WIDGET COMMAND"
|
|
58
|
+
Supports the standard widget commands
|
|
59
|
+
\fBconfigure\fR, \fBcget\fR, \fBinstate\fR, and \fBstate\fR;
|
|
60
|
+
see \fIwidget(n)\fR.
|
|
61
|
+
.SH "SEE ALSO"
|
|
62
|
+
widget(n), frame(n)
|
|
63
|
+
.SH "KEYWORDS"
|
|
64
|
+
widget, frame, container, label, groupbox
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" SOURCE: tcl/doc/man.macros r1.4 2000/08/25
|
|
3
|
+
'\" CHANGES:
|
|
4
|
+
'\" SO tab settings reverted to earlier definition (4 columns instead of 3).
|
|
5
|
+
.\" Remove the "See the options(n) manpage..." message from SE.
|
|
6
|
+
'\"
|
|
7
|
+
'\" The definitions below are for supplemental macros used in Tcl/Tk
|
|
8
|
+
'\" manual entries.
|
|
9
|
+
'\"
|
|
10
|
+
'\" .AP type name in/out ?indent?
|
|
11
|
+
'\" Start paragraph describing an argument to a library procedure.
|
|
12
|
+
'\" type is type of argument (int, etc.), in/out is either "in", "out",
|
|
13
|
+
'\" or "in/out" to describe whether procedure reads or modifies arg,
|
|
14
|
+
'\" and indent is equivalent to second arg of .IP (shouldn't ever be
|
|
15
|
+
'\" needed; use .AS below instead)
|
|
16
|
+
'\"
|
|
17
|
+
'\" .AS ?type? ?name?
|
|
18
|
+
'\" Give maximum sizes of arguments for setting tab stops. Type and
|
|
19
|
+
'\" name are examples of largest possible arguments that will be passed
|
|
20
|
+
'\" to .AP later. If args are omitted, default tab stops are used.
|
|
21
|
+
'\"
|
|
22
|
+
'\" .BS
|
|
23
|
+
'\" Start box enclosure. From here until next .BE, everything will be
|
|
24
|
+
'\" enclosed in one large box.
|
|
25
|
+
'\"
|
|
26
|
+
'\" .BE
|
|
27
|
+
'\" End of box enclosure.
|
|
28
|
+
'\"
|
|
29
|
+
'\" .CS
|
|
30
|
+
'\" Begin code excerpt.
|
|
31
|
+
'\"
|
|
32
|
+
'\" .CE
|
|
33
|
+
'\" End code excerpt.
|
|
34
|
+
'\"
|
|
35
|
+
'\" .VS ?version? ?br?
|
|
36
|
+
'\" Begin vertical sidebar, for use in marking newly-changed parts
|
|
37
|
+
'\" of man pages. The first argument is ignored and used for recording
|
|
38
|
+
'\" the version when the .VS was added, so that the sidebars can be
|
|
39
|
+
'\" found and removed when they reach a certain age. If another argument
|
|
40
|
+
'\" is present, then a line break is forced before starting the sidebar.
|
|
41
|
+
'\"
|
|
42
|
+
'\" .VE
|
|
43
|
+
'\" End of vertical sidebar.
|
|
44
|
+
'\"
|
|
45
|
+
'\" .DS
|
|
46
|
+
'\" Begin an indented unfilled display.
|
|
47
|
+
'\"
|
|
48
|
+
'\" .DE
|
|
49
|
+
'\" End of indented unfilled display.
|
|
50
|
+
'\"
|
|
51
|
+
'\" .SO
|
|
52
|
+
'\" Start of list of standard options for a Tk widget. The
|
|
53
|
+
'\" options follow on successive lines, in four columns separated
|
|
54
|
+
'\" by tabs.
|
|
55
|
+
'\"
|
|
56
|
+
'\" .SE
|
|
57
|
+
'\" End of list of standard options for a Tk widget.
|
|
58
|
+
'\"
|
|
59
|
+
'\" .OP cmdName dbName dbClass
|
|
60
|
+
'\" Start of description of a specific option. cmdName gives the
|
|
61
|
+
'\" option's name as specified in the class command, dbName gives
|
|
62
|
+
'\" the option's name in the option database, and dbClass gives
|
|
63
|
+
'\" the option's class in the option database.
|
|
64
|
+
'\"
|
|
65
|
+
'\" .UL arg1 arg2
|
|
66
|
+
'\" Print arg1 underlined, then print arg2 normally.
|
|
67
|
+
'\"
|
|
68
|
+
'\"
|
|
69
|
+
'\" # Set up traps and other miscellaneous stuff for Tcl/Tk man pages.
|
|
70
|
+
.if t .wh -1.3i ^B
|
|
71
|
+
.nr ^l \n(.l
|
|
72
|
+
.ad b
|
|
73
|
+
'\" # Start an argument description
|
|
74
|
+
.de AP
|
|
75
|
+
.ie !"\\$4"" .TP \\$4
|
|
76
|
+
.el \{\
|
|
77
|
+
. ie !"\\$2"" .TP \\n()Cu
|
|
78
|
+
. el .TP 15
|
|
79
|
+
.\}
|
|
80
|
+
.ta \\n()Au \\n()Bu
|
|
81
|
+
.ie !"\\$3"" \{\
|
|
82
|
+
\&\\$1 \\fI\\$2\\fP (\\$3)
|
|
83
|
+
.\".b
|
|
84
|
+
.\}
|
|
85
|
+
.el \{\
|
|
86
|
+
.br
|
|
87
|
+
.ie !"\\$2"" \{\
|
|
88
|
+
\&\\$1 \\fI\\$2\\fP
|
|
89
|
+
.\}
|
|
90
|
+
.el \{\
|
|
91
|
+
\&\\fI\\$1\\fP
|
|
92
|
+
.\}
|
|
93
|
+
.\}
|
|
94
|
+
..
|
|
95
|
+
'\" # define tabbing values for .AP
|
|
96
|
+
.de AS
|
|
97
|
+
.nr )A 10n
|
|
98
|
+
.if !"\\$1"" .nr )A \\w'\\$1'u+3n
|
|
99
|
+
.nr )B \\n()Au+15n
|
|
100
|
+
.\"
|
|
101
|
+
.if !"\\$2"" .nr )B \\w'\\$2'u+\\n()Au+3n
|
|
102
|
+
.nr )C \\n()Bu+\\w'(in/out)'u+2n
|
|
103
|
+
..
|
|
104
|
+
.AS Tcl_Interp Tcl_CreateInterp in/out
|
|
105
|
+
'\" # BS - start boxed text
|
|
106
|
+
'\" # ^y = starting y location
|
|
107
|
+
'\" # ^b = 1
|
|
108
|
+
.de BS
|
|
109
|
+
.br
|
|
110
|
+
.mk ^y
|
|
111
|
+
.nr ^b 1u
|
|
112
|
+
.if n .nf
|
|
113
|
+
.if n .ti 0
|
|
114
|
+
.if n \l'\\n(.lu\(ul'
|
|
115
|
+
.if n .fi
|
|
116
|
+
..
|
|
117
|
+
'\" # BE - end boxed text (draw box now)
|
|
118
|
+
.de BE
|
|
119
|
+
.nf
|
|
120
|
+
.ti 0
|
|
121
|
+
.mk ^t
|
|
122
|
+
.ie n \l'\\n(^lu\(ul'
|
|
123
|
+
.el \{\
|
|
124
|
+
.\" Draw four-sided box normally, but don't draw top of
|
|
125
|
+
.\" box if the box started on an earlier page.
|
|
126
|
+
.ie !\\n(^b-1 \{\
|
|
127
|
+
\h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
|
|
128
|
+
.\}
|
|
129
|
+
.el \}\
|
|
130
|
+
\h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
|
|
131
|
+
.\}
|
|
132
|
+
.\}
|
|
133
|
+
.fi
|
|
134
|
+
.br
|
|
135
|
+
.nr ^b 0
|
|
136
|
+
..
|
|
137
|
+
'\" # VS - start vertical sidebar
|
|
138
|
+
'\" # ^Y = starting y location
|
|
139
|
+
'\" # ^v = 1 (for troff; for nroff this doesn't matter)
|
|
140
|
+
.de VS
|
|
141
|
+
.if !"\\$2"" .br
|
|
142
|
+
.mk ^Y
|
|
143
|
+
.ie n 'mc \s12\(br\s0
|
|
144
|
+
.el .nr ^v 1u
|
|
145
|
+
..
|
|
146
|
+
'\" # VE - end of vertical sidebar
|
|
147
|
+
.de VE
|
|
148
|
+
.ie n 'mc
|
|
149
|
+
.el \{\
|
|
150
|
+
.ev 2
|
|
151
|
+
.nf
|
|
152
|
+
.ti 0
|
|
153
|
+
.mk ^t
|
|
154
|
+
\h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'
|
|
155
|
+
.sp -1
|
|
156
|
+
.fi
|
|
157
|
+
.ev
|
|
158
|
+
.\}
|
|
159
|
+
.nr ^v 0
|
|
160
|
+
..
|
|
161
|
+
'\" # Special macro to handle page bottom: finish off current
|
|
162
|
+
'\" # box/sidebar if in box/sidebar mode, then invoked standard
|
|
163
|
+
'\" # page bottom macro.
|
|
164
|
+
.de ^B
|
|
165
|
+
.ev 2
|
|
166
|
+
'ti 0
|
|
167
|
+
'nf
|
|
168
|
+
.mk ^t
|
|
169
|
+
.if \\n(^b \{\
|
|
170
|
+
.\" Draw three-sided box if this is the box's first page,
|
|
171
|
+
.\" draw two sides but no top otherwise.
|
|
172
|
+
.ie !\\n(^b-1 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
|
|
173
|
+
.el \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
|
|
174
|
+
.\}
|
|
175
|
+
.if \\n(^v \{\
|
|
176
|
+
.nr ^x \\n(^tu+1v-\\n(^Yu
|
|
177
|
+
\kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c
|
|
178
|
+
.\}
|
|
179
|
+
.bp
|
|
180
|
+
'fi
|
|
181
|
+
.ev
|
|
182
|
+
.if \\n(^b \{\
|
|
183
|
+
.mk ^y
|
|
184
|
+
.nr ^b 2
|
|
185
|
+
.\}
|
|
186
|
+
.if \\n(^v \{\
|
|
187
|
+
.mk ^Y
|
|
188
|
+
.\}
|
|
189
|
+
..
|
|
190
|
+
'\" # DS - begin display
|
|
191
|
+
.de DS
|
|
192
|
+
.RS
|
|
193
|
+
.nf
|
|
194
|
+
.sp
|
|
195
|
+
..
|
|
196
|
+
'\" # DE - end display
|
|
197
|
+
.de DE
|
|
198
|
+
.fi
|
|
199
|
+
.RE
|
|
200
|
+
.sp
|
|
201
|
+
..
|
|
202
|
+
'\" # SO - start of list of standard options
|
|
203
|
+
.de SO
|
|
204
|
+
.SH "STANDARD OPTIONS"
|
|
205
|
+
.LP
|
|
206
|
+
.nf
|
|
207
|
+
.ta 4c 8c 12c
|
|
208
|
+
.ft B
|
|
209
|
+
..
|
|
210
|
+
'\" # SE - end of list of standard options
|
|
211
|
+
.de SE
|
|
212
|
+
.fi
|
|
213
|
+
.ft R
|
|
214
|
+
..
|
|
215
|
+
'\" # OP - start of full description for a single option
|
|
216
|
+
.de OP
|
|
217
|
+
.LP
|
|
218
|
+
.nf
|
|
219
|
+
.ta 4c
|
|
220
|
+
Command-Line Name: \\fB\\$1\\fR
|
|
221
|
+
Database Name: \\fB\\$2\\fR
|
|
222
|
+
Database Class: \\fB\\$3\\fR
|
|
223
|
+
.fi
|
|
224
|
+
.IP
|
|
225
|
+
..
|
|
226
|
+
'\" # CS - begin code excerpt
|
|
227
|
+
.de CS
|
|
228
|
+
.RS
|
|
229
|
+
.nf
|
|
230
|
+
.ta .25i .5i .75i 1i
|
|
231
|
+
..
|
|
232
|
+
'\" # CE - end code excerpt
|
|
233
|
+
.de CE
|
|
234
|
+
.fi
|
|
235
|
+
.RE
|
|
236
|
+
..
|
|
237
|
+
.de UL
|
|
238
|
+
\\$1\l'|0\(ul'\\$2
|
|
239
|
+
..
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH menubutton n 0.2 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::menubutton \- Widget that pops down a menu when pressed
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
\fBttk::menubutton\fR \fIpathName \fR?\fIoptions\fR?
|
|
11
|
+
.BE
|
|
12
|
+
.SH DESCRIPTION
|
|
13
|
+
A \fBmenubutton\fR widget displays a textual label and/or image,
|
|
14
|
+
and displays a menu when pressed.
|
|
15
|
+
.SO
|
|
16
|
+
\-class \-compound \-cursor \-image
|
|
17
|
+
\-state \-style \-takefocus \-text
|
|
18
|
+
\-textvariable \-underline \-width
|
|
19
|
+
.SE
|
|
20
|
+
.SH "OPTIONS"
|
|
21
|
+
.OP \-direction direction Direction
|
|
22
|
+
Specifies where the menu is to be popped up relative
|
|
23
|
+
to the menubutton.
|
|
24
|
+
One of: \fIabove\fR, \fIbelow\fR, \fIleft\fR, \fIright\fR,
|
|
25
|
+
or \fIflush\fR. The default is \fIbelow\fR.
|
|
26
|
+
\fIflush\fR pops the menu up directly over the menubutton.
|
|
27
|
+
.OP \-menu menu Menu
|
|
28
|
+
Specifies the path name of the menu associated with the menubutton.
|
|
29
|
+
To be on the safe side, the menu ought to be a direct child of the
|
|
30
|
+
menubutton.
|
|
31
|
+
.\" not documented: may go away:
|
|
32
|
+
.\" .OP \-anchor anchor Anchor
|
|
33
|
+
.\" .OP \-padding padding Pad
|
|
34
|
+
.SH "WIDGET COMMAND"
|
|
35
|
+
Menubutton widgets support the standard
|
|
36
|
+
\fBcget\fR, \fBconfigure\fR, \fBinstate\fR, and \fBstate\fR
|
|
37
|
+
methods. No other widget methods are used.
|
|
38
|
+
.SH "SEE ALSO"
|
|
39
|
+
widget(n), keynav(n), menu(n)
|
|
40
|
+
.SH "KEYWORDS"
|
|
41
|
+
widget, button, menu
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
'\"
|
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
|
3
|
+
'\"
|
|
4
|
+
.so man.macros
|
|
5
|
+
.TH notebook n 0.2 tile "Tile Widget Set"
|
|
6
|
+
.BS
|
|
7
|
+
.SH NAME
|
|
8
|
+
ttk::notebook \- Multi-paned container widget
|
|
9
|
+
.SH SYNOPSIS
|
|
10
|
+
.nf
|
|
11
|
+
\fBttk::notebook\fR \fIpathName \fR?\fIoptions...\fR?
|
|
12
|
+
.br
|
|
13
|
+
\fIpathName \fBadd\fR \fIwindow\fR ?\fIoptions...\fR?
|
|
14
|
+
\fIpathName \fBinsert\fR \fIindex\fR \fIwindow\fR ?\fIoptions...\fR?
|
|
15
|
+
.fi
|
|
16
|
+
.BE
|
|
17
|
+
.SH DESCRIPTION
|
|
18
|
+
A \fBttk::notebook\fR widget manages a collection of windows
|
|
19
|
+
and displays a single one at a time.
|
|
20
|
+
Each slave window is associated with a \fItab\fR,
|
|
21
|
+
which the user may select to change the currently-displayed window.
|
|
22
|
+
.SO
|
|
23
|
+
\-class \-cursor \-takefocus \-style
|
|
24
|
+
.SE
|
|
25
|
+
.SH "WIDGET OPTIONS"
|
|
26
|
+
.OP \-height height Height
|
|
27
|
+
If present and greater than zero,
|
|
28
|
+
specifies the desired height of the pane area
|
|
29
|
+
(not including internal padding or tabs).
|
|
30
|
+
Otherwise, the maximum height of all panes is used.
|
|
31
|
+
.OP \-padding padding Padding
|
|
32
|
+
Specifies the amount of extra space to add around the outside
|
|
33
|
+
of the notebook.
|
|
34
|
+
The padding is a list of up to four length specifications
|
|
35
|
+
\fIleft top right bottom\fR.
|
|
36
|
+
If fewer than four elements are specified,
|
|
37
|
+
\fIbottom\fR defaults to \fItop\fR,
|
|
38
|
+
\fIright\fR defaults to \fIleft\fR, and
|
|
39
|
+
\fItop\fR defaults to \fIleft\fR.
|
|
40
|
+
.OP \-width width Width
|
|
41
|
+
If present and greater than zero,
|
|
42
|
+
specifies the desired width of the pane area
|
|
43
|
+
(not including internal padding).
|
|
44
|
+
Otherwise, the maximum width of all panes is used.
|
|
45
|
+
.SH "TAB OPTIONS"
|
|
46
|
+
The following options may be specified for individual notebook panes:
|
|
47
|
+
.OP \-state state State
|
|
48
|
+
Either \fBnormal\fR, \fBdisabled\fR or \fBhidden\fR.
|
|
49
|
+
If \fBdisabled\fR, then the tab is not selectable.
|
|
50
|
+
If \fBhidden\fR, then the tab is not shown.
|
|
51
|
+
.OP \-sticky sticky Sticky
|
|
52
|
+
Specifies how the slave window is positioned within the pane area.
|
|
53
|
+
Value is a string containing zero or more of the characters
|
|
54
|
+
\fBn, s, e,\fR or \fBw\fR.
|
|
55
|
+
Each letter refers to a side (north, south, east, or west)
|
|
56
|
+
that the slave window will "stick" to,
|
|
57
|
+
as per the \fBgrid\fR geometry manager.
|
|
58
|
+
.OP \-padding padding Padding
|
|
59
|
+
Specifies the amount of extra space to add between the notebook and this pane.
|
|
60
|
+
Syntax is the same as for the widget \fB\-padding\fR option.
|
|
61
|
+
.OP \-text text Text
|
|
62
|
+
Specifies a string to be displayed in the tab.
|
|
63
|
+
.OP \-image image Image
|
|
64
|
+
Specifies an image to display in the tab.
|
|
65
|
+
See \fIwidget(n)\fR for details.
|
|
66
|
+
.OP \-compound compound Compound
|
|
67
|
+
Specifies how to display the image relative to the text,
|
|
68
|
+
in the case both \fB\-text\fR and \fB\-image\fR are present.
|
|
69
|
+
See \fIlabel(n)\fR for legal values.
|
|
70
|
+
.OP \-underline underline Underline
|
|
71
|
+
Specifies the integer index (0-based) of a character to underline
|
|
72
|
+
in the text string.
|
|
73
|
+
The underlined character is used for mnemonic activation
|
|
74
|
+
if \fBttk::notebook::enableTraversal\fR is called.
|
|
75
|
+
.SH "WIDGET COMMAND"
|
|
76
|
+
.TP
|
|
77
|
+
\fIpathname \fBadd\fR \fIwindow\fR ?\fIoptions...\fR?
|
|
78
|
+
Adds a new tab to the notebook.
|
|
79
|
+
See \fBTAB OPTIONS\fR for the list of available \fIoptions\fR.
|
|
80
|
+
If \fIwindow\fR is currently managed by the notebook but hidden,
|
|
81
|
+
it is restored to its previous position.
|
|
82
|
+
.TP
|
|
83
|
+
\fIpathname \fBconfigure\fR ?\fIoptions\fR?
|
|
84
|
+
See \fIwidget(n)\fR.
|
|
85
|
+
.TP
|
|
86
|
+
\fIpathname \fBcget\fR \fIoption\fR
|
|
87
|
+
See \fIwidget(n)\fR.
|
|
88
|
+
.TP
|
|
89
|
+
\fIpathname \fBforget\fR \fItabid\fR
|
|
90
|
+
Removes the tab specified by \fItabid\fR,
|
|
91
|
+
unmaps and unmanages the associated window.
|
|
92
|
+
.TP
|
|
93
|
+
\fIpathname \fBhide\fR \fItabid\fR
|
|
94
|
+
Hides the tab specified by \fItabid\fR.
|
|
95
|
+
The tab will not be displayed, but the associated window
|
|
96
|
+
remains managed by the notebook and its configuration remembered.
|
|
97
|
+
Hidden tabs may be restored with the \fBadd\fR command.
|
|
98
|
+
.TP
|
|
99
|
+
\fIpathname \fBindex\fR \fItabid\fR
|
|
100
|
+
Returns the numeric index of the tab specified by \fItabid\fR,
|
|
101
|
+
or the total number of tabs if \fItabid\fR is the string "\fBend\fR".
|
|
102
|
+
.TP
|
|
103
|
+
\fIpathname \fBinsert\fR \fIpos\fR \fIsubwindow\fR \fIoptions...\fR
|
|
104
|
+
Inserts a pane at the specified position.
|
|
105
|
+
\fIpos\fR is either the string \fBend\fR, an integer index,
|
|
106
|
+
or the name of a managed subwindow.
|
|
107
|
+
If \fIsubwindow\fR is already managed by the notebook,
|
|
108
|
+
moves it to the specified position.
|
|
109
|
+
See \fBTAB OPTIONS\fR for the list of available options.
|
|
110
|
+
.TP
|
|
111
|
+
\fIpathname \fBinstate\fR \fIstatespec \fR?\fIscript...\fR?
|
|
112
|
+
See \fIwidget(n)\fR.
|
|
113
|
+
.TP
|
|
114
|
+
\fIpathname \fBselect\fR ?\fItabid\fR?
|
|
115
|
+
Selects the specified tab.
|
|
116
|
+
The associated slave window will be displayed,
|
|
117
|
+
and the previously-selected window (if different) is unmapped.
|
|
118
|
+
If \fItabid\fR is omitted, returns the widget name of the
|
|
119
|
+
currently selected pane.
|
|
120
|
+
.TP
|
|
121
|
+
\fIpathname \fBstate\fR ?\fIstatespec\fR?
|
|
122
|
+
See \fIwidget(n)\fR.
|
|
123
|
+
.TP
|
|
124
|
+
\fIpathname \fBtab\fR \fItabid\fR ?\fI\-option \fR?\fIvalue ...\fR
|
|
125
|
+
Query or modify the options of the specific tab.
|
|
126
|
+
If no \fI\-option\fR is specified,
|
|
127
|
+
returns a dictionary of the tab option values.
|
|
128
|
+
If one \fI\-option\fR is specified,
|
|
129
|
+
returns the value of that \fIoption\fR.
|
|
130
|
+
Otherwise, sets the \fI\-option\fRs to the corresponding \fIvalue\fRs.
|
|
131
|
+
See \fBTAB OPTIONS\fR for the available options.
|
|
132
|
+
.TP
|
|
133
|
+
\fIpathname \fBtabs\fR
|
|
134
|
+
Returns the list of windows managed by the notebook.
|
|
135
|
+
.SH "KEYBOARD TRAVERSAL"
|
|
136
|
+
To enable keyboard traversal for a toplevel window
|
|
137
|
+
containing a notebook widget \fI$nb\fR, call:
|
|
138
|
+
.CS
|
|
139
|
+
ttk::notebook::enableTraversal $nb
|
|
140
|
+
.CE
|
|
141
|
+
.PP
|
|
142
|
+
This will extend the bindings for the toplevel window
|
|
143
|
+
containing the notebook as follows:
|
|
144
|
+
.IP \(bu
|
|
145
|
+
\fBControl-Tab\fR selects the tab following the currently selected one.
|
|
146
|
+
.IP \(bu
|
|
147
|
+
\fBShift-Control-Tab\fR selects the tab preceding the currently selected one.
|
|
148
|
+
.IP \(bu
|
|
149
|
+
\fBAlt-K\fR, where \fBK\fR is the mnemonic (underlined) character
|
|
150
|
+
of any tab, will select that tab.
|
|
151
|
+
.PP
|
|
152
|
+
Multiple notebooks in a single toplevel may be enabled for traversal,
|
|
153
|
+
including nested notebooks.
|
|
154
|
+
However, notebook traversal only works properly if all panes
|
|
155
|
+
are direct children of the notebook.
|
|
156
|
+
.SH "TAB IDENTIFIERS"
|
|
157
|
+
The \fItabid\fR argument to the above commands may take
|
|
158
|
+
any of the following forms:
|
|
159
|
+
.IP \(bu
|
|
160
|
+
An integer between zero and the number of tabs;
|
|
161
|
+
.IP \(bu
|
|
162
|
+
The name of a slave window;
|
|
163
|
+
.IP \(bu
|
|
164
|
+
A positional specification of the form "@\fIx\fR,\fIy\fR",
|
|
165
|
+
which identifies the tab
|
|
166
|
+
.IP \(bu
|
|
167
|
+
The literal string "\fBcurrent\fR",
|
|
168
|
+
which identifies the currently-selected tab; or:
|
|
169
|
+
.IP \(bu
|
|
170
|
+
The literal string "\fBend\fR",
|
|
171
|
+
which returns the number of tabs
|
|
172
|
+
(only valid for "\fIpathname \fBindex\fR").
|
|
173
|
+
|
|
174
|
+
.SH "VIRTUAL EVENTS"
|
|
175
|
+
The notebook widget generates a \fB<<NotebookTabChanged>>\fR
|
|
176
|
+
virtual event after a new tab is selected.
|
|
177
|
+
.SH "EXAMPLE"
|
|
178
|
+
.CS
|
|
179
|
+
notebook .nb
|
|
180
|
+
\.nb add [frame .nb.f1] -text "First tab"
|
|
181
|
+
\.nb add [frame .nb.f2] -text "Second tab"
|
|
182
|
+
\.nb select .nb.f2
|
|
183
|
+
ttk::notebook::enableTraversal .nb
|
|
184
|
+
.CE
|
|
185
|
+
.SH "SEE ALSO"
|
|
186
|
+
widget(n), grid(n)
|
|
187
|
+
.SH "KEYWORDS"
|
|
188
|
+
pane, tab
|