diff options
author | dkf <dkf@noemail.net> | 2009-07-11 07:30:23 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2009-07-11 07:30:23 (GMT) |
commit | 84317484fc1e0944280dce793c7edb3afd946460 (patch) | |
tree | 2acbbc456d90ad85b4a800aa97b23fd31c953d7e /doc | |
parent | 11265638b54f1e0a76a3a44031eae325b14fcaee (diff) | |
download | tk-84317484fc1e0944280dce793c7edb3afd946460.zip tk-84317484fc1e0944280dce793c7edb3afd946460.tar.gz tk-84317484fc1e0944280dce793c7edb3afd946460.tar.bz2 |
[Bug 2818455]: Corrected example.
FossilOrigin-Name: 70b6f7aeff2c283c90168c8d526ff4b7ef758391
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grid.n | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: grid.n,v 1.20 2007/12/13 15:23:43 dgp Exp $ +'\" RCS: @(#) $Id: grid.n,v 1.20.2.1 2009/07/11 07:30:24 dkf Exp $ '\" .so man.macros .TH grid n 8.5 Tk "Tk Built-In Commands" @@ -404,11 +404,13 @@ A toplevel window containing a text widget and two scrollbars: # Make the widgets toplevel .t text .t.txt \-wrap none \-xscroll {.t.h set} \-yscroll {.t.v set} -scrollbar .t.v \-orient vertical \-command {.t.txt xview} +scrollbar .t.v \-orient vertical \-command {.t.txt yview} scrollbar .t.h \-orient horizontal \-command {.t.txt xview} + # Lay them out \fBgrid\fR .t.txt .t.v \-sticky nsew \fBgrid\fR .t.h \-sticky nsew + # Tell the text widget to take all the extra room \fBgrid rowconfigure\fR .t .t.txt \-weight 1 \fBgrid columnconfigure\fR .t .t.txt \-weight 1 @@ -421,6 +423,7 @@ widths: button .b \-text "Foo" entry .e \-variable foo label .l \-text "This is a fairly long piece of text" + \fBgrid\fR .b .e .l \-sticky ew \fBgrid columnconfigure\fR . "all" \-uniform allTheSame .CE |