1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
5
<title>GCL TK Manual: wm</title>
7
<meta name="description" content="GCL TK Manual: wm">
8
<meta name="keywords" content="GCL TK Manual: wm">
9
<meta name="resource-type" content="document">
10
<meta name="distribution" content="global">
11
<meta name="Generator" content="makeinfo">
12
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
13
<link href="index.html#Top" rel="start" title="Top">
14
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
15
<link href="Control.html#Control" rel="up" title="Control">
16
<link href="winfo.html#winfo" rel="prev" title="winfo">
17
<style type="text/css">
19
a.summary-letter {text-decoration: none}
20
blockquote.smallquotation {font-size: smaller}
21
div.display {margin-left: 3.2em}
22
div.example {margin-left: 3.2em}
23
div.indentedblock {margin-left: 3.2em}
24
div.lisp {margin-left: 3.2em}
25
div.smalldisplay {margin-left: 3.2em}
26
div.smallexample {margin-left: 3.2em}
27
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
28
div.smalllisp {margin-left: 3.2em}
29
kbd {font-style:oblique}
30
pre.display {font-family: inherit}
31
pre.format {font-family: inherit}
32
pre.menu-comment {font-family: serif}
33
pre.menu-preformatted {font-family: serif}
34
pre.smalldisplay {font-family: inherit; font-size: smaller}
35
pre.smallexample {font-size: smaller}
36
pre.smallformat {font-family: inherit; font-size: smaller}
37
pre.smalllisp {font-size: smaller}
38
span.nocodebreak {white-space:nowrap}
39
span.nolinebreak {white-space:nowrap}
40
span.roman {font-family:serif; font-weight:normal}
41
span.sansserif {font-family:sans-serif; font-weight:normal}
42
ul.no-bullet {list-style: none}
49
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
53
Previous: <a href="winfo.html#winfo" accesskey="p" rel="prev">winfo</a>, Up: <a href="Control.html#Control" accesskey="u" rel="up">Control</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
57
<h3 class="section">3.25 wm</h3>
59
<p>wm \- Communicate with window manager
60
</p><a name="Synopsis-37"></a>
61
<h4 class="unnumberedsubsec">Synopsis</h4>
62
<p><b>wm</b><span class="roman"> </span><i>option window </i><span class="roman">?</span><i>args</i>?
64
<a name="Description-36"></a>
65
<h4 class="unnumberedsubsec">Description</h4>
67
<p>The <b>wm</b> command is used to interact with window managers in
68
order to control such things as the title for a window, its geometry,
69
or the increments in terms of which it may be resized. The <b>wm</b>
70
command can take any of a number of different forms, depending on
71
the <i>option</i> argument. All of the forms expect at least one
72
additional argument, <i>window</i>, which must be the path name of a
75
<p>The legal forms for the <b>wm</b> command are:
77
<dl compact="compact">
78
<dt><b>wm :aspect </b><i>window</i><span class="roman"> ?</span><i>minNumer minDenom maxNumer maxDenom</i>?</dt>
79
<dd><p>If <i>minNumer</i><span class="roman">, </span><i>minDenom</i><span class="roman">, </span><i>maxNumer</i><span class="roman">, and </span><i>maxDenom</i>
80
are all specified, then they will be passed to the window manager
81
and the window manager should use them to enforce a range of
82
acceptable aspect ratios for <i>window</i>. The aspect ratio of
83
<i>window</i> (width/length) will be constrained to lie
84
between <i>minNumer</i><span class="roman">/</span><i>minDenom</i><span class="roman"> and </span><i>maxNumer</i><span class="roman">/</span><i>maxDenom</i>.
85
If <i>minNumer</i> etc. are all specified as empty strings, then
86
any existing aspect ratio restrictions are removed.
87
If <i>minNumer</i> etc. are specified, then the command returns an
88
empty string. Otherwise, it returns
89
a Tcl list containing four elements, which are the current values
90
of <i>minNumer</i><span class="roman">, </span><i>minDenom</i><span class="roman">, </span><i>maxNumer</i><span class="roman">, and </span><i>maxDenom</i>
91
(if no aspect restrictions are in effect, then an empty string is
94
<dt><b>wm :client </b><i>window</i><span class="roman"> ?</span><i>name</i>?</dt>
95
<dd><p>If <i>name</i><span class="roman"> is specified, this command stores </span><i>name</i> (which
97
the host on which the application is executing) in <i>window</i>’s
98
<b>WM_CLIENT_MACHINE</b> property for use by the window manager or
100
The command returns an empty string in this case.
101
If <i>name</i> isn’t specified, the command returns the last name
102
set in a <b>wm :client</b><span class="roman"> command for </span><i>window</i>.
103
If <i>name</i> is specified as an empty string, the command deletes the
104
<b>WM_CLIENT_MACHINE</b><span class="roman"> property from </span><i>window</i>.
106
<dt><b>wm :command </b><i>window</i><span class="roman"> ?</span><i>value</i>?</dt>
107
<dd><p>If <i>value</i><span class="roman"> is specified, this command stores </span><i>value</i><span class="roman"> in </span><i>window</i>’s
108
<b>WM_COMMAND</b> property for use by the window manager or
109
session manager and returns an empty string.
110
<i>Value</i> must have proper list structure; the elements should
111
contain the words of the command used to invoke the application.
112
If <i>value</i> isn’t specified then the command returns the last value
113
set in a <b>wm :command</b><span class="roman"> command for </span><i>window</i>.
114
If <i>value</i> is specified as an empty string, the command
115
deletes the <b>WM_COMMAND</b><span class="roman"> property from </span><i>window</i>.
117
<dt><b>wm :deiconify </b><i>window</i></dt>
118
<dd><p>Arrange for <i>window</i> to be displayed in normal (non-iconified) form.
119
This is done by mapping the window. If the window has never been
120
mapped then this command will not map the window, but it will ensure
121
that when the window is first mapped it will be displayed
122
in de-iconified form. Returns an empty string.
124
<dt><b>wm :focusmodel </b><i>window</i><span class="roman"> ?</span><b>active</b><span class="roman">|</span><b>passive</b>?</dt>
125
<dd><p>If <b>active</b><span class="roman"> or </span><b>passive</b> is supplied as an optional argument
126
to the command, then it specifies the focus model for <i>window</i>.
127
In this case the command returns an empty string. If no additional
128
argument is supplied, then the command returns the current focus
129
model for <i>window</i>.
130
An <b>active</b><span class="roman"> focus model means that </span><i>window</i> will claim the
131
input focus for itself or its descendants, even at times when
132
the focus is currently in some other application. <b>Passive</b> means that
133
<i>window</i> will never claim the focus for itself: the window manager
134
should give the focus to <i>window</i> at appropriate times. However,
135
once the focus has been given to <i>window</i> or one of its descendants,
136
the application may re-assign the focus among <i>window</i>’s descendants.
137
The focus model defaults to <b>passive</b><span class="roman">, and Tk’s </span><b>focus</b> command
138
assumes a passive model of focussing.
140
<dt><b>wm :frame </b><i>window</i></dt>
141
<dd><p>If <i>window</i> has been reparented by the window manager into a
142
decorative frame, the command returns the X window identifier for
143
the outermost frame that contains <i>window</i> (the window whose
144
parent is the root or virtual root). If <i>window</i> hasn’t been
145
reparented by the window manager then the command returns the
146
X window identifier for <i>window</i>.
148
<dt><b>wm :geometry </b><i>window</i><span class="roman"> ?</span><i>newGeometry</i>?</dt>
149
<dd><p>If <i>newGeometry</i><span class="roman"> is specified, then the geometry of </span><i>window</i>
150
is changed and an empty string is returned. Otherwise the current
151
geometry for <i>window</i> is returned (this is the most recent
152
geometry specified either by manual resizing or
153
in a <b>wm :geometry</b><span class="roman"> command). </span><i>NewGeometry</i> has
154
the form <b>=</b><i>width</i><b>x</b><i>height</i><b>\(+-</b><i>x</i><b>\(+-</b><i>y</i>, where
155
any of <b>=</b><span class="roman">, </span><i>width</i><b>x</b><i>height</i><span class="roman">, or </span><b>\(+-</b><i>x</i><b>\(+-</b><i>y</i>
156
may be omitted. <i>Width</i><span class="roman"> and </span><i>height</i> are positive integers
157
specifying the desired dimensions of <i>window</i><span class="roman">. If </span><i>window</i>
158
is gridded (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensions
159
are specified in grid units; otherwise they are specified in pixel
160
units. <i>X</i><span class="roman"> and </span><i>y</i> specify the desired location of
161
<i>window</i> on the screen, in pixels.
162
If <i>x</i><span class="roman"> is preceded by </span><b>+</b>, it specifies
163
the number of pixels between the left edge of the screen and the left
164
edge of <i>window</i><span class="roman">’s border; if preceded by </span><b>-</b> then
165
<i>x</i> specifies the number of pixels
166
between the right edge of the screen and the right edge of <i>window</i>’s
167
border. If <i>y</i><span class="roman"> is preceded by </span><b>+</b> then it specifies the
168
number of pixels between the top of the screen and the top
169
of <i>window</i><span class="roman">’s border; if </span><i>y</i><span class="roman"> is preceded by </span><b>-</b> then
170
it specifies the number of pixels between the bottom of <i>window</i>’s
171
border and the bottom of the screen.
172
If <i>newGeometry</i> is specified as an empty string then any
173
existing user-specified geometry for <i>window</i> is cancelled, and
174
the window will revert to the size requested internally by its
177
<dt><b>wm :grid </b><i>window</i><span class="roman"> ?</span><i>baseWidth baseHeight widthInc heightInc</i>?</dt>
178
<dd><p>This command indicates that <i>window</i> is to be managed as a
180
It also specifies the relationship between grid units and pixel units.
181
<i>BaseWidth</i><span class="roman"> and </span><i>baseHeight</i> specify the number of grid
182
units corresponding to the pixel dimensions requested internally
183
by <i>window</i><span class="roman"> using </span><b>Tk_GeometryRequest</b><span class="roman">. </span><i>WidthInc</i>
184
and <i>heightInc</i> specify the number of pixels in each horizontal
185
and vertical grid unit.
186
These four values determine a range of acceptable sizes for
187
<i>window</i>, corresponding to grid-based widths and heights
188
that are non-negative integers.
189
Tk will pass this information to the window manager; during
190
manual resizing, the window manager will restrict the window’s size
191
to one of these acceptable sizes.
192
Furthermore, during manual resizing the window manager will display
193
the window’s current size in terms of grid units rather than pixels.
194
If <i>baseWidth</i> etc. are all specified as empty strings, then
195
<i>window</i> will no longer be managed as a gridded window. If
196
<i>baseWidth</i> etc. are specified then the return value is an
198
Otherwise the return value is a Tcl list containing
199
four elements corresponding to the current <i>baseWidth</i>,
200
<i>baseHeight</i><span class="roman">, </span><i>widthInc</i><span class="roman">, and </span><i>heightInc</i>; if
201
<i>window</i> is not currently gridded, then an empty string
203
Note: this command should not be needed very often, since the
204
<b>Tk_SetGrid</b><span class="roman"> library procedure and the </span><b>setGrid</b> option
205
provide easier access to the same functionality.
207
<dt><b>wm :group </b><i>window</i><span class="roman"> ?</span><i>pathName</i>?</dt>
208
<dd><p>If <i>pathName</i> is specified, it gives the path name for the leader of
209
a group of related windows. The window manager may use this information,
210
for example, to unmap all of the windows in a group when the group’s
211
leader is iconified. <i>PathName</i> may be specified as an empty string to
212
remove <i>window</i><span class="roman"> from any group association. If </span><i>pathName</i> is
213
specified then the command returns an empty string; otherwise it
214
returns the path name of <i>window</i>’s current group leader, or an empty
215
string if <i>window</i> isn’t part of any group.
217
<dt><b>wm :iconbitmap </b><i>window</i><span class="roman"> ?</span><i>bitmap</i>?</dt>
218
<dd><p>If <i>bitmap</i> is specified, then it names a bitmap in the standard
219
forms accepted by Tk (see the <b>Tk_GetBitmap</b> manual entry for details).
220
This bitmap is passed to the window manager to be displayed in
221
<i>window</i>’s icon, and the command returns an empty string. If
222
an empty string is specified for <i>bitmap</i>, then any current icon
223
bitmap is cancelled for <i>window</i>.
224
If <i>bitmap</i> is specified then the command returns an empty string.
225
Otherwise it returns the name of
226
the current icon bitmap associated with <i>window</i>, or an empty
227
string if <i>window</i> has no icon bitmap.
229
<dt><b>wm :iconify </b><i>window</i></dt>
230
<dd><p>Arrange for <i>window</i><span class="roman"> to be iconified. It </span><i>window</i> hasn’t
231
yet been mapped for the first time, this command will arrange for
232
it to appear in the iconified state when it is eventually mapped.
234
<dt><b>wm :iconmask </b><i>window</i><span class="roman"> ?</span><i>bitmap</i>?</dt>
235
<dd><p>If <i>bitmap</i> is specified, then it names a bitmap in the standard
236
forms accepted by Tk (see the <b>Tk_GetBitmap</b> manual entry for details).
237
This bitmap is passed to the window manager to be used as a mask
238
in conjunction with the <b>iconbitmap</b> option: where the mask
239
has zeroes no icon will be displayed; where it has ones, the bits
240
from the icon bitmap will be displayed. If
241
an empty string is specified for <i>bitmap</i> then any current icon
242
mask is cancelled for <i>window</i> (this is equivalent to specifying
243
a bitmap of all ones). If <i>bitmap</i> is specified
244
then the command returns an empty string. Otherwise it
245
returns the name of the current icon mask associated with
246
<i>window</i>, or an empty string if no mask is in effect.
248
<dt><b>wm :iconname </b><i>window</i><span class="roman"> ?</span><i>newName</i>?</dt>
249
<dd><p>If <i>newName</i> is specified, then it is passed to the window
250
manager; the window manager should display <i>newName</i> inside
251
the icon associated with <i>window</i>. In this case an empty
252
string is returned as result. If <i>newName</i> isn’t specified
253
then the command returns the current icon name for <i>window</i>,
254
or an empty string if no icon name has been specified (in this
255
case the window manager will normally display the window’s title,
256
as specified with the <b>wm :title</b> command).
258
<dt><b>wm :iconposition </b><i>window</i><span class="roman"> ?</span><i>x y</i>?</dt>
259
<dd><p>If <i>x</i><span class="roman"> and </span><i>y</i> are specified, they are passed to the window
260
manager as a hint about where to position the icon for <i>window</i>.
261
In this case an empty string is returned. If <i>x</i><span class="roman"> and </span><i>y</i> are
262
specified as empty strings then any existing icon position hint is cancelled.
263
If neither <i>x</i><span class="roman"> nor </span><i>y</i> is specified, then the command returns
264
a Tcl list containing two values, which are the current icon position
265
hints (if no hints are in effect then an empty string is returned).
267
<dt><b>wm :iconwindow </b><i>window</i><span class="roman"> ?</span><i>pathName</i>?</dt>
268
<dd><p>If <i>pathName</i> is specified, it is the path name for a window to
269
use as icon for <i>window</i><span class="roman">: when </span><i>window</i> is iconified then
270
<i>pathName</i><span class="roman"> should be mapped to serve as icon, and when </span><i>window</i>
271
is de-iconified then <i>pathName</i> will be unmapped again. If
272
<i>pathName</i> is specified as an empty string then any existing
273
icon window association for <i>window</i> will be cancelled. If
274
the <i>pathName</i> argument is specified then an empty string is
275
returned. Otherwise the command returns the path name of the
276
current icon window for <i>window</i>, or an empty string if there
277
is no icon window currently specified for <i>window</i>. Note:
278
not all window managers support the notion of an icon window.
280
<dt><b>wm :maxsize </b><i>window</i><span class="roman"> ?</span><i>width height</i>?</dt>
281
<dd><p>If <i>width</i><span class="roman"> and </span><i>height</i><span class="roman"> are specified, then </span><i>window</i>
282
becomes resizable and <i>width</i><span class="roman"> and </span><i>height</i> give its
283
maximum permissible dimensions.
284
For gridded windows the dimensions are specified in
285
grid units; otherwise they are specified in pixel units.
286
During manual sizing, the window manager
287
should restrict the window’s dimensions to be less than or
288
equal to <i>width</i><span class="roman"> and </span><i>height</i>.
289
If <i>width</i><span class="roman"> and </span><i>height</i> are specified as empty strings,
290
then the maximum size option is cancelled for <i>window</i>.
291
If <i>width</i><span class="roman"> and </span><i>height</i> are
292
specified, then the command returns an empty string. Otherwise
293
it returns a Tcl list with two elements, which are the
294
maximum width and height currently in effect; if no maximum
295
dimensions are in effect for <i>window</i> then an empty
296
string is returned. See the sections on geometry management
297
below for more information.
299
<dt><b>wm :minsize </b><i>window</i><span class="roman"> ?</span><i>width height</i>?</dt>
300
<dd><p>If <i>width</i><span class="roman"> and </span><i>height</i><span class="roman"> are specified, then </span><i>window</i>
301
becomes resizable and <i>width</i><span class="roman"> and </span><i>height</i> give its
302
minimum permissible dimensions.
303
For gridded windows the dimensions are specified in
304
grid units; otherwise they are specified in pixel units.
305
During manual sizing, the window manager
306
should restrict the window’s dimensions to be greater than or
307
equal to <i>width</i><span class="roman"> and </span><i>height</i>.
308
If <i>width</i><span class="roman"> and </span><i>height</i> are specified as empty strings,
309
then the minimum size option is cancelled for <i>window</i>.
310
If <i>width</i><span class="roman"> and </span><i>height</i> are
311
specified, then the command returns an empty string. Otherwise
312
it returns a Tcl list with two elements, which are the
313
minimum width and height currently in effect; if no minimum
314
dimensions are in effect for <i>window</i> then an empty
315
string is returned. See the sections on geometry management
316
below for more information.
318
<dt><b>wm :overrideredirect </b><i>window</i><span class="roman"> ?</span><i>boolean</i>?</dt>
319
<dd><p>If <i>boolean</i> is specified, it must have a proper boolean form and
320
the override-redirect flag for <i>window</i> is set to that value.
321
If <i>boolean</i><span class="roman"> is not specified then </span><b>1</b><span class="roman"> or </span><b>0</b> is
322
returned to indicate whether or not the override-redirect flag
323
is currently set for <i>window</i>.
324
Setting the override-redirect flag for a window causes
325
it to be ignored by the window manager; among other things, this means
326
that the window will not be reparented from the root window into a
327
decorative frame and the user will not be able to manipulate the
328
window using the normal window manager mechanisms.
330
<dt><b>wm :positionfrom </b><i>window</i><span class="roman"> ?</span><i>who</i>?</dt>
331
<dd><p>If <i>who</i><span class="roman"> is specified, it must be either </span><b>program</b> or
332
<b>user</b>, or an abbreviation of one of these two. It indicates
333
whether <i>window</i>’s current position was requested by the
334
program or by the user. Many window managers ignore program-requested
335
initial positions and ask the user to manually position the window; if
336
<b>user</b> is specified then the window manager should position the
337
window at the given place without asking the user for assistance.
338
If <i>who</i> is specified as an empty string, then the current position
340
If <i>who</i> is specified, then the command returns an empty string.
341
Otherwise it returns <b>user</b><span class="roman"> or </span><b>window</b> to indicate the
342
source of the window’s current position, or an empty string if
343
no source has been specified yet. Most window managers interpret
344
“no source” as equivalent to <b>program</b>.
345
Tk will automatically set the position source to <b>user</b>
346
when a <b>wm :geometry</b> command is invoked, unless the source has
347
been set explicitly to <b>program</b>.
349
<dt><b>wm :protocol </b><i>window</i><span class="roman"> ?</span><i>name</i><span class="roman">? ?</span><i>command</i>?</dt>
350
<dd><p>This command is used to manage window manager protocols such as
351
<b>WM_DELETE_WINDOW</b>.
352
<i>Name</i> is the name of an atom corresponding to a window manager
353
protocol, such as <b>WM_DELETE_WINDOW</b><span class="roman"> or </span><b>WM_SAVE_YOURSELF</b>
354
or <b>WM_TAKE_FOCUS</b>.
355
If both <i>name</i><span class="roman"> and </span><i>command</i><span class="roman"> are specified, then </span><i>command</i>
356
is associated with the protocol specified by <i>name</i>.
357
<i>Name</i><span class="roman"> will be added to </span><i>window</i><span class="roman">’s </span><b>WM_PROTOCOLS</b>
358
property to tell the window manager that the application has a
359
protocol handler for <i>name</i><span class="roman">, and </span><i>command</i> will
360
be invoked in the future whenever the window manager sends a
361
message to the client for that protocol.
362
In this case the command returns an empty string.
363
If <i>name</i><span class="roman"> is specified but </span><i>command</i> isn’t, then the current
364
command for <i>name</i> is returned, or an empty string if there
365
is no handler defined for <i>name</i>.
366
If <i>command</i> is specified as an empty string then the current
367
handler for <i>name</i> is deleted and it is removed from the
368
<b>WM_PROTOCOLS</b><span class="roman"> property on </span><i>window</i>; an empty string is
370
Lastly, if neither <i>name</i><span class="roman"> nor </span><i>command</i> is specified, the
371
command returns a list of all the protocols for which handlers
372
are currently defined for <i>window</i>.
377
<p>Tk always defines a protocol handler for <b>WM_DELETE_WINDOW</b>, even if
378
you haven’t asked for one with <b>wm :protocol</b>.
379
If a <b>WM_DELETE_WINDOW</b> message arrives when you haven’t defined
380
a handler, then Tk handles the message by destroying the window for
381
which it was received.
384
<dl compact="compact">
385
<dt><b>wm :sizefrom </b><i>window</i><span class="roman"> ?</span><i>who</i>?</dt>
386
<dd><p>If <i>who</i><span class="roman"> is specified, it must be either </span><b>program</b> or
387
<b>user</b>, or an abbreviation of one of these two. It indicates
388
whether <i>window</i>’s current size was requested by the
389
program or by the user. Some window managers ignore program-requested
390
sizes and ask the user to manually size the window; if
391
<b>user</b> is specified then the window manager should give the
392
window its specified size without asking the user for assistance.
393
If <i>who</i> is specified as an empty string, then the current size
395
If <i>who</i> is specified, then the command returns an empty string.
396
Otherwise it returns <b>user</b><span class="roman"> or </span><b>window</b> to indicate the
397
source of the window’s current size, or an empty string if
398
no source has been specified yet. Most window managers interpret
399
“no source” as equivalent to <b>program</b>.
401
<dt><b>wm :state </b><i>window</i></dt>
402
<dd><p>Returns the current state of <i>window</i><span class="roman">: either </span><b>normal</b>,
403
<b>iconic</b><span class="roman">, or </span><b>withdrawn</b>.
405
<dt><b>wm :title </b><i>window</i><span class="roman"> ?</span><i>string</i>?</dt>
406
<dd><p>If <i>string</i> is specified, then it will be passed to the window
407
manager for use as the title for <i>window</i> (the window manager
408
should display this string in <i>window</i>’s title bar). In this
409
case the command returns an empty string. If <i>string</i> isn’t
410
specified then the command returns the current title for the
411
<i>window</i>. The title for a window defaults to its name.
413
<dt><b>wm :transient </b><i>window</i><span class="roman"> ?</span><i>master</i>?</dt>
414
<dd><p>If <i>master</i> is specified, then the window manager is informed
415
that <i>window</i> is a transient window (e.g. pull-down menu) working
416
on behalf of <i>master</i><span class="roman"> (where </span><i>master</i> is the
417
path name for a top-level window). Some window managers will use
418
this information to manage <i>window</i><span class="roman"> specially. If </span><i>master</i>
419
is specified as an empty string then <i>window</i> is marked as not
420
being a transient window any more. If <i>master</i> is specified,
421
then the command returns an empty string. Otherwise the command
422
returns the path name of <i>window</i>’s current master, or an
423
empty string if <i>window</i> isn’t currently a transient window.
425
<dt><b>wm :withdraw </b><i>window</i></dt>
426
<dd><p>Arranges for <i>window</i> to be withdrawn from the screen. This
427
causes the window to be unmapped and forgotten about by the window
428
manager. If the window
429
has never been mapped, then this command
430
causes the window to be mapped in the withdrawn state. Not all
431
window managers appear to know how to handle windows that are
432
mapped in the withdrawn state.
433
Note: it sometimes seems to be necessary to withdraw a
434
window and then re-map it (e.g. with <b>wm :deiconify</b>) to get some
435
window managers to pay attention to changes in window attributes
440
<a name="g_t_0022Sources-Of-Geometry-Information_0022"></a>
441
<h4 class="unnumberedsubsec">"Sources Of Geometry Information"</h4>
443
<p>Size-related information for top-level windows
444
can come from three sources.
445
First, geometry requests come from the widgets that are descendants
446
of a top-level window.
447
Each widget requests a particular size for itself
448
by calling <b>Tk_GeometryRequest</b>. This information is passed to
449
geometry managers, which then request large enough sizes for parent
450
windows so that they can layout the children properly.
451
Geometry information passes upwards through the window hierarchy
452
until eventually a particular size is requested for each top-level
454
These requests are called <i>internal requests</i> in the discussion
456
The second source of width and height information is through the
457
<b>wm :geometry</b> command. Third, the user can
458
request a particular size for a window using the
459
interactive facilities of the window manager.
460
The second and third types of geometry requests are called
461
<i>external requests</i> in the discussion below; Tk treats
462
these two kinds of requests identically.
464
<a name="g_t_0022Ungridded-Geometry-Management_0022"></a>
465
<h4 class="unnumberedsubsec">"Ungridded Geometry Management"</h4>
467
<p>Tk allows the geometry of a top-level window to be managed in
468
either of two general ways: ungridded or gridded.
469
The ungridded form occurs if no <b>wm :grid</b> command
470
has been issued for a top-level window.
471
Ungridded management has several variants.
472
In the simplest variant of ungridded windows,
473
no <b>wm :geometry</b><span class="roman">, </span><b>wm :minsize</b><span class="roman">, or </span><b>wm :maxsize</b>
474
commands have been invoked either.
475
In this case, the window’s size is
476
determined totally by the internal requests emanating from the
477
widgets inside the window: Tk will ask the window manager not to
478
permit the user to resize the window interactively.
480
<p>If a <b>wm :geometry</b> command is invoked on an ungridded window,
481
then the size in that command overrides any size requested by the
482
window’s widgets; from now on, the window’s size will be determined
483
entirely by the most recent information from <b>wm :geometry</b>
484
commands. To go back to using the size requested by the window’s
485
widgets, issue a <b>wm :geometry</b><span class="roman"> command with an empty </span><i>geometry</i>
488
<p>To enable interactive resizing of an ungridded window, one or both
489
of the <b>wm :maxsize</b>
490
and <b>wm :minsize</b> commands must be issued.
491
The information from these commands will be passed to the window
492
manager, and size changes within the specified range will be permitted.
493
For ungridded windows the limits refer to the top-level window’s
494
dimensions in pixels.
495
If only a <b>wm :maxsize</b> command is issued then the minimum
496
dimensions default to 1; if only a <b>wm :minsize</b> command is
497
issued then the maximum dimensions default to the size of the display.
498
If the size of a window is changed interactively, it has the same
499
effect as if <b>wm :geometry</b> had been invoked: from now on, internal
500
geometry requests will be ignored.
501
To return to internal control over the window’s size, issue a
502
<b>wm :geometry</b><span class="roman"> command with an empty </span><i>geometry</i> argument.
503
If a window has been manually resized or moved, the <b>wm :geometry</b>
504
command will return the geometry that was requested interactively.
506
<a name="g_t_0022Gridded-Geometry-Management_0022"></a>
507
<h4 class="unnumberedsubsec">"Gridded Geometry Management"</h4>
509
<p>The second style of geometry management is called <i>gridded</i>.
510
This approach occurs when one of the widgets of an application
511
supports a range of useful sizes.
512
This occurs, for example, in a text editor where the scrollbars,
513
menus, and other adornments are fixed in size but the edit widget
514
can support any number of lines of text or characters per line.
515
In this case, it is usually desirable to let the user specify the
516
number of lines or characters-per-line, either with the
517
<b>wm :geometry</b> command or by interactively resizing the window.
518
In the case of text, and in other interesting cases also, only
519
discrete sizes of the window make sense, such as integral numbers
520
of lines and characters-per-line; arbitrary pixel sizes are not useful.
522
<p>Gridded geometry management provides support for this kind of
524
Tk (and the window manager) assume that there is a grid of some
525
sort within the application and that the application should be
526
resized in terms of <i>grid units</i> rather than pixels.
527
Gridded geometry management is typically invoked by turning on
528
the <b>setGrid</b> option for a widget; it can also be invoked
529
with the <b>wm :grid</b><span class="roman"> command or by calling </span><b>Tk_SetGrid</b>.
530
In each of these approaches the particular widget (or sometimes
531
code in the application as a whole) specifies the relationship between
532
integral grid sizes for the window and pixel sizes.
533
To return to non-gridded geometry management, invoke
534
<b>wm :grid</b> with empty argument strings.
536
<p>When gridded geometry management is enabled then all the dimensions specified
537
in <b>wm :minsize</b><span class="roman">, </span><b>wm :maxsize</b><span class="roman">, and </span><b>wm :geometry</b> commands
538
are treated as grid units rather than pixel units.
539
Interactive resizing is automatically enabled, and it will be
540
carried out in even numbers of grid units rather than pixels.
541
By default there are no limits on the minimum or maximum dimensions
543
As with ungridded windows, interactive resizing has exactly the
544
same effect as invoking the <b>wm :geometry</b> command.
545
For gridded windows, internally- and externally-requested dimensions
546
work together: the externally-specified width and height determine
547
the size of the window in grid units, and the information from the
548
last <b>wm :grid</b> command maps from grid units to pixel units.
550
<a name="Bugs-3"></a>
551
<h4 class="unnumberedsubsec">Bugs</h4>
553
<p>The window manager interactions seem too complicated, especially
554
for managing geometry. Suggestions on how to simplify this would
555
be greatly appreciated.
557
<p>Most existing window managers appear to have bugs that affect the
558
operation of the <b>wm</b> command. For example, some changes won’t
559
take effect if the window is already active: the window will have
560
to be withdrawn and de-iconified in order to make the change happen.
562
<a name="Keywords-39"></a>
563
<h4 class="unnumberedsubsec">Keywords</h4>
564
<p>aspect ratio, deiconify, focus model, geometry, grid, group, icon, iconify, increments, position, size, title, top-level window, units, window manager
566
<a name="SEC_Overview"></a>
567
<h2 class="shortcontents-heading">Short Table of Contents</h2>
569
<div class="shortcontents">
570
<ul class="no-bullet">
571
<li><a name="stoc-General-1" href="#toc-General-1">1 General</a></li>
572
<li><a name="stoc-Widgets-1" href="#toc-Widgets-1">2 Widgets</a></li>
573
<li><a name="stoc-Control-1" href="#toc-Control-1">3 Control</a></li>
577
<a name="SEC_Contents"></a>
578
<h2 class="contents-heading">Table of Contents</h2>
580
<div class="contents">
582
<ul class="no-bullet">
583
<li><a name="toc-General-1" href="General.html#General">1 General</a>
584
<ul class="no-bullet">
585
<li><a name="toc-Introduction-1" href="Introduction.html#Introduction">1.1 Introduction</a></li>
586
<li><a name="toc-Getting-Started-1" href="Getting-Started.html#Getting-Started">1.2 Getting Started</a></li>
587
<li><a name="toc-Common-Features-of-Widgets-1" href="Common-Features-of-Widgets.html#Common-Features-of-Widgets">1.3 Common Features of Widgets</a></li>
588
<li><a name="toc-Return-Values-1" href="Return-Values.html#Return-Values">1.4 Return Values</a>
589
<ul class="no-bullet">
590
<li><a name="toc-Widget-Constructor-Return-Values" href="Return-Values.html#Widget-Constructor-Return-Values">1.4.1 Widget Constructor Return Values</a></li>
591
<li><a name="toc-Widget-Return-Values" href="Return-Values.html#Widget-Return-Values">1.4.2 Widget Return Values</a></li>
592
<li><a name="toc-Control-Function-Return-Values" href="Return-Values.html#Control-Function-Return-Values">1.4.3 Control Function Return Values</a></li>
594
<li><a name="toc-Argument-Lists-1" href="Argument-Lists.html#Argument-Lists">1.5 Argument Lists</a>
595
<ul class="no-bullet">
596
<li><a name="toc-Widget-Functions" href="Argument-Lists.html#Widget-Functions">1.5.1 Widget Functions</a></li>
597
<li><a name="toc-Widget-Constructor-Argument-Lists" href="Argument-Lists.html#Widget-Constructor-Argument-Lists">1.5.2 Widget Constructor Argument Lists</a></li>
598
<li><a name="toc-Concatenation-Using-_0060_003a_0027-in-Argument-List" href="Argument-Lists.html#Concatenation-Using-_0060_003a_0027-in-Argument-List">1.5.3 Concatenation Using ‘:’ in Argument List</a></li>
600
<li><a name="toc-Lisp-Functions-Invoked-from-Graphics-1" href="Lisp-Functions-Invoked-from-Graphics.html#Lisp-Functions-Invoked-from-Graphics">1.6 Lisp Functions Invoked from Graphics</a></li>
601
<li><a name="toc-Linked-Variables-1" href="Linked-Variables.html#Linked-Variables">1.7 Linked Variables</a></li>
602
<li><a name="toc-tkconnect-1" href="tkconnect.html#tkconnect">1.8 tkconnect</a></li>
604
<li><a name="toc-Widgets-1" href="Widgets.html#Widgets">2 Widgets</a>
605
<ul class="no-bullet">
606
<li><a name="toc-button-1" href="button.html#button">2.1 button</a>
607
<ul class="no-bullet">
608
<li><a name="toc-Synopsis" href="button.html#Synopsis">Synopsis</a></li>
609
<li><a name="toc-Standard-Options" href="button.html#Standard-Options">Standard Options</a></li>
610
<li><a name="toc-Arguments-for-Button" href="button.html#Arguments-for-Button">Arguments for Button</a></li>
611
<li><a name="toc-Description" href="button.html#Description">Description</a></li>
612
<li><a name="toc-A-Button-Widget_0027s-Arguments" href="button.html#A-Button-Widget_0027s-Arguments">A Button Widget’s Arguments</a></li>
613
<li><a name="toc-_0022Default-Bindings_0022" href="button.html#g_t_0022Default-Bindings_0022">"Default Bindings"</a></li>
614
<li><a name="toc-Keywords" href="button.html#Keywords">Keywords</a></li>
616
<li><a name="toc-listbox-1" href="listbox.html#listbox">2.2 listbox</a>
617
<ul class="no-bullet">
618
<li><a name="toc-Synopsis-1" href="listbox.html#Synopsis-1">Synopsis</a></li>
619
<li><a name="toc-Standard-Options-1" href="listbox.html#Standard-Options-1">Standard Options</a></li>
620
<li><a name="toc-Arguments-for-Listbox" href="listbox.html#Arguments-for-Listbox">Arguments for Listbox</a></li>
621
<li><a name="toc-Description-1" href="listbox.html#Description-1">Description</a></li>
622
<li><a name="toc-A-Listbox_0027s-Arguments" href="listbox.html#A-Listbox_0027s-Arguments">A Listbox’s Arguments</a></li>
623
<li><a name="toc-_0022Default-Bindings_0022-1" href="listbox.html#g_t_0022Default-Bindings_0022-1">"Default Bindings"</a></li>
624
<li><a name="toc-Keywords-1" href="listbox.html#Keywords-1">Keywords</a></li>
626
<li><a name="toc-scale-1" href="scale.html#scale">2.3 scale</a>
627
<ul class="no-bullet">
628
<li><a name="toc-Synopsis-2" href="scale.html#Synopsis-2">Synopsis</a></li>
629
<li><a name="toc-Standard-Options-2" href="scale.html#Standard-Options-2">Standard Options</a></li>
630
<li><a name="toc-Arguments-for-Scale" href="scale.html#Arguments-for-Scale">Arguments for Scale</a></li>
631
<li><a name="toc-Description-2" href="scale.html#Description-2">Description</a></li>
632
<li><a name="toc-A-Scale_0027s_0022Argumentsommand_0022" href="scale.html#A-Scale_0027s_0022Argumentsommand_0022">A Scale’s"Argumentsommand"</a></li>
633
<li><a name="toc-Bindings" href="scale.html#Bindings">Bindings</a></li>
634
<li><a name="toc-Keywords-2" href="scale.html#Keywords-2">Keywords</a></li>
636
<li><a name="toc-canvas-1" href="canvas.html#canvas">2.4 canvas</a>
637
<ul class="no-bullet">
638
<li><a name="toc-Synopsis-3" href="canvas.html#Synopsis-3">Synopsis</a></li>
639
<li><a name="toc-Standard-Options-3" href="canvas.html#Standard-Options-3">Standard Options</a></li>
640
<li><a name="toc-Arguments-for-Canvas" href="canvas.html#Arguments-for-Canvas">Arguments for Canvas</a></li>
641
<li><a name="toc-Introduction-2" href="canvas.html#Introduction-2">Introduction</a></li>
642
<li><a name="toc-Display-List" href="canvas.html#Display-List">Display List</a></li>
643
<li><a name="toc-Item-Ids-And-Tags" href="canvas.html#Item-Ids-And-Tags">Item Ids And Tags</a></li>
644
<li><a name="toc-Coordinates" href="canvas.html#Coordinates">Coordinates</a></li>
645
<li><a name="toc-Transformations" href="canvas.html#Transformations">Transformations</a></li>
646
<li><a name="toc-Indices" href="canvas.html#Indices">Indices</a></li>
647
<li><a name="toc-A-Canvas-Widget_0027s-Arguments" href="canvas.html#A-Canvas-Widget_0027s-Arguments">A Canvas Widget’s Arguments</a></li>
648
<li><a name="toc-Overview-Of-Item-Types" href="canvas.html#Overview-Of-Item-Types">Overview Of Item Types</a></li>
649
<li><a name="toc-Arc-Items" href="canvas.html#Arc-Items">Arc Items</a></li>
650
<li><a name="toc-Bitmap-Items" href="canvas.html#Bitmap-Items">Bitmap Items</a></li>
651
<li><a name="toc-Line-Items" href="canvas.html#Line-Items">Line Items</a></li>
652
<li><a name="toc-Oval-Items" href="canvas.html#Oval-Items">Oval Items</a></li>
653
<li><a name="toc-Polygon-Items" href="canvas.html#Polygon-Items">Polygon Items</a></li>
654
<li><a name="toc-Rectangle-Items" href="canvas.html#Rectangle-Items">Rectangle Items</a></li>
655
<li><a name="toc-Text-Items" href="canvas.html#Text-Items">Text Items</a></li>
656
<li><a name="toc-Window-Items" href="canvas.html#Window-Items">Window Items</a></li>
657
<li><a name="toc-Application_002dDefined-Item-Types" href="canvas.html#Application_002dDefined-Item-Types">Application-Defined Item Types</a></li>
658
<li><a name="toc-Bindings-1" href="canvas.html#Bindings-1">Bindings</a></li>
659
<li><a name="toc-Credits" href="canvas.html#Credits">Credits</a></li>
660
<li><a name="toc-Keywords-3" href="canvas.html#Keywords-3">Keywords</a></li>
662
<li><a name="toc-menu-1" href="menu.html#menu">2.5 menu</a>
663
<ul class="no-bullet">
664
<li><a name="toc-Synopsis-4" href="menu.html#Synopsis-4">Synopsis</a></li>
665
<li><a name="toc-Standard-Options-4" href="menu.html#Standard-Options-4">Standard Options</a></li>
666
<li><a name="toc-Arguments-for-Menu" href="menu.html#Arguments-for-Menu">Arguments for Menu</a></li>
667
<li><a name="toc-Introduction-3" href="menu.html#Introduction-3">Introduction</a></li>
668
<li><a name="toc-Command-Entries" href="menu.html#Command-Entries">Command Entries</a></li>
669
<li><a name="toc-Separator-Entries" href="menu.html#Separator-Entries">Separator Entries</a></li>
670
<li><a name="toc-Check_002dButton-Entries" href="menu.html#Check_002dButton-Entries">Check-Button Entries</a></li>
671
<li><a name="toc-Radio_002dButton-Entries" href="menu.html#Radio_002dButton-Entries">Radio-Button Entries</a></li>
672
<li><a name="toc-Cascade-Entries" href="menu.html#Cascade-Entries">Cascade Entries</a></li>
673
<li><a name="toc-A-Menu-Widget_0027s-Arguments" href="menu.html#A-Menu-Widget_0027s-Arguments">A Menu Widget’s Arguments</a></li>
674
<li><a name="toc-Default-Bindings" href="menu.html#Default-Bindings">Default Bindings</a></li>
675
<li><a name="toc-Bugs" href="menu.html#Bugs">Bugs</a></li>
676
<li><a name="toc-Keywords-4" href="menu.html#Keywords-4">Keywords</a></li>
678
<li><a name="toc-scrollbar-1" href="scrollbar.html#scrollbar">2.6 scrollbar</a>
679
<ul class="no-bullet">
680
<li><a name="toc-Synopsis-5" href="scrollbar.html#Synopsis-5">Synopsis</a></li>
681
<li><a name="toc-Standard-Options-5" href="scrollbar.html#Standard-Options-5">Standard Options</a></li>
682
<li><a name="toc-Arguments-for-Scrollbar" href="scrollbar.html#Arguments-for-Scrollbar">Arguments for Scrollbar</a></li>
683
<li><a name="toc-Description-3" href="scrollbar.html#Description-3">Description</a></li>
684
<li><a name="toc-A-Scrollbar-Widget_0027s-Arguments" href="scrollbar.html#A-Scrollbar-Widget_0027s-Arguments">A Scrollbar Widget’s Arguments</a></li>
685
<li><a name="toc-Bindings-2" href="scrollbar.html#Bindings-2">Bindings</a></li>
686
<li><a name="toc-Keywords-5" href="scrollbar.html#Keywords-5">Keywords</a></li>
688
<li><a name="toc-checkbutton-1" href="checkbutton.html#checkbutton">2.7 checkbutton</a>
689
<ul class="no-bullet">
690
<li><a name="toc-Synopsis-6" href="checkbutton.html#Synopsis-6">Synopsis</a></li>
691
<li><a name="toc-Standard-Options-6" href="checkbutton.html#Standard-Options-6">Standard Options</a></li>
692
<li><a name="toc-Arguments-for-Checkbutton" href="checkbutton.html#Arguments-for-Checkbutton">Arguments for Checkbutton</a></li>
693
<li><a name="toc-Description-4" href="checkbutton.html#Description-4">Description</a></li>
694
<li><a name="toc-A-Checkbutton-Widget_0027s-Arguments" href="checkbutton.html#A-Checkbutton-Widget_0027s-Arguments">A Checkbutton Widget’s Arguments</a></li>
695
<li><a name="toc-Bindings-3" href="checkbutton.html#Bindings-3">Bindings</a></li>
696
<li><a name="toc-Keywords-6" href="checkbutton.html#Keywords-6">Keywords</a></li>
698
<li><a name="toc-menubutton-1" href="menubutton.html#menubutton">2.8 menubutton</a>
699
<ul class="no-bullet">
700
<li><a name="toc-Synopsis-7" href="menubutton.html#Synopsis-7">Synopsis</a></li>
701
<li><a name="toc-Standard-Options-7" href="menubutton.html#Standard-Options-7">Standard Options</a></li>
702
<li><a name="toc-Arguments-for-Menubutton" href="menubutton.html#Arguments-for-Menubutton">Arguments for Menubutton</a></li>
703
<li><a name="toc-Introduction-4" href="menubutton.html#Introduction-4">Introduction</a></li>
704
<li><a name="toc-A-Menubutton-Widget_0027s-Arguments" href="menubutton.html#A-Menubutton-Widget_0027s-Arguments">A Menubutton Widget’s Arguments</a></li>
705
<li><a name="toc-_0022Default-Bindings_0022-2" href="menubutton.html#g_t_0022Default-Bindings_0022-2">"Default Bindings"</a></li>
706
<li><a name="toc-Keywords-7" href="menubutton.html#Keywords-7">Keywords</a></li>
708
<li><a name="toc-text-1" href="text.html#text">2.9 text</a>
709
<ul class="no-bullet">
710
<li><a name="toc-Synopsis-8" href="text.html#Synopsis-8">Synopsis</a></li>
711
<li><a name="toc-Standard-Options-8" href="text.html#Standard-Options-8">Standard Options</a></li>
712
<li><a name="toc-Arguments-for-Text" href="text.html#Arguments-for-Text">Arguments for Text</a></li>
713
<li><a name="toc-Description-5" href="text.html#Description-5">Description</a></li>
714
<li><a name="toc-Indices-1" href="text.html#Indices-1">Indices</a></li>
715
<li><a name="toc-Tags" href="text.html#Tags">Tags</a></li>
716
<li><a name="toc-Marks" href="text.html#Marks">Marks</a></li>
717
<li><a name="toc-Windows" href="text.html#Windows">Windows</a></li>
718
<li><a name="toc-The-Selection" href="text.html#The-Selection">The Selection</a></li>
719
<li><a name="toc-The-Insertion-Cursor" href="text.html#The-Insertion-Cursor">The Insertion Cursor</a></li>
720
<li><a name="toc-A-Text-Widget_0027s-Arguments" href="text.html#A-Text-Widget_0027s-Arguments">A Text Widget’s Arguments</a></li>
721
<li><a name="toc-Bindings-4" href="text.html#Bindings-4">Bindings</a></li>
722
<li><a name="toc-_0022Performance-Issues_0022" href="text.html#g_t_0022Performance-Issues_0022">"Performance Issues"</a></li>
723
<li><a name="toc-Keywords-8" href="text.html#Keywords-8">Keywords</a></li>
725
<li><a name="toc-entry-1" href="entry.html#entry">2.10 entry</a>
726
<ul class="no-bullet">
727
<li><a name="toc-Synopsis-9" href="entry.html#Synopsis-9">Synopsis</a></li>
728
<li><a name="toc-Standard-Options-9" href="entry.html#Standard-Options-9">Standard Options</a></li>
729
<li><a name="toc-Arguments-for-Entry" href="entry.html#Arguments-for-Entry">Arguments for Entry</a></li>
730
<li><a name="toc-Description-6" href="entry.html#Description-6">Description</a></li>
731
<li><a name="toc-A-Entry-Widget_0027s-Arguments" href="entry.html#A-Entry-Widget_0027s-Arguments">A Entry Widget’s Arguments</a></li>
732
<li><a name="toc-_0022Default-Bindings_0022-3" href="entry.html#g_t_0022Default-Bindings_0022-3">"Default Bindings"</a></li>
733
<li><a name="toc-Keywords-9" href="entry.html#Keywords-9">Keywords</a></li>
735
<li><a name="toc-message-1" href="message.html#message">2.11 message</a>
736
<ul class="no-bullet">
737
<li><a name="toc-Synopsis-10" href="message.html#Synopsis-10">Synopsis</a></li>
738
<li><a name="toc-Standard-Options-10" href="message.html#Standard-Options-10">Standard Options</a></li>
739
<li><a name="toc-Arguments-for-Message" href="message.html#Arguments-for-Message">Arguments for Message</a></li>
740
<li><a name="toc-Description-7" href="message.html#Description-7">Description</a></li>
741
<li><a name="toc-A-Message-Widget_0027s-Arguments" href="message.html#A-Message-Widget_0027s-Arguments">A Message Widget’s Arguments</a></li>
742
<li><a name="toc-_0022Default-Bindings_0022-4" href="message.html#g_t_0022Default-Bindings_0022-4">"Default Bindings"</a></li>
743
<li><a name="toc-Bugs-1" href="message.html#Bugs-1">Bugs</a></li>
744
<li><a name="toc-Keywords-10" href="message.html#Keywords-10">Keywords</a></li>
746
<li><a name="toc-frame-1" href="frame.html#frame">2.12 frame</a>
747
<ul class="no-bullet">
748
<li><a name="toc-Synopsis-11" href="frame.html#Synopsis-11">Synopsis</a></li>
749
<li><a name="toc-Standard-Options-11" href="frame.html#Standard-Options-11">Standard Options</a></li>
750
<li><a name="toc-Arguments-for-Frame" href="frame.html#Arguments-for-Frame">Arguments for Frame</a></li>
751
<li><a name="toc-Description-8" href="frame.html#Description-8">Description</a></li>
752
<li><a name="toc-A-Frame-Widget_0027s-Arguments" href="frame.html#A-Frame-Widget_0027s-Arguments">A Frame Widget’s Arguments</a></li>
753
<li><a name="toc-Bindings-5" href="frame.html#Bindings-5">Bindings</a></li>
754
<li><a name="toc-Keywords-11" href="frame.html#Keywords-11">Keywords</a></li>
756
<li><a name="toc-label-1" href="label.html#label">2.13 label</a>
757
<ul class="no-bullet">
758
<li><a name="toc-Synopsis-12" href="label.html#Synopsis-12">Synopsis</a></li>
759
<li><a name="toc-Standard-Options-12" href="label.html#Standard-Options-12">Standard Options</a></li>
760
<li><a name="toc-Arguments-for-Label" href="label.html#Arguments-for-Label">Arguments for Label</a></li>
761
<li><a name="toc-Description-9" href="label.html#Description-9">Description</a></li>
762
<li><a name="toc-A-Label-Widget_0027s-Arguments" href="label.html#A-Label-Widget_0027s-Arguments">A Label Widget’s Arguments</a></li>
763
<li><a name="toc-Bindings-6" href="label.html#Bindings-6">Bindings</a></li>
764
<li><a name="toc-Keywords-12" href="label.html#Keywords-12">Keywords</a></li>
766
<li><a name="toc-radiobutton-1" href="radiobutton.html#radiobutton">2.14 radiobutton</a>
767
<ul class="no-bullet">
768
<li><a name="toc-Synopsis-13" href="radiobutton.html#Synopsis-13">Synopsis</a></li>
769
<li><a name="toc-Standard-Options-13" href="radiobutton.html#Standard-Options-13">Standard Options</a></li>
770
<li><a name="toc-Arguments-for-Radiobutton" href="radiobutton.html#Arguments-for-Radiobutton">Arguments for Radiobutton</a></li>
771
<li><a name="toc-Description-10" href="radiobutton.html#Description-10">Description</a></li>
772
<li><a name="toc-A-Radiobutton-Widget_0027s-Arguments" href="radiobutton.html#A-Radiobutton-Widget_0027s-Arguments">A Radiobutton Widget’s Arguments</a></li>
773
<li><a name="toc-Bindings-7" href="radiobutton.html#Bindings-7">Bindings</a></li>
774
<li><a name="toc-Keywords-13" href="radiobutton.html#Keywords-13">Keywords</a></li>
776
<li><a name="toc-toplevel-1" href="toplevel.html#toplevel">2.15 toplevel</a>
777
<ul class="no-bullet">
778
<li><a name="toc-Synopsis-14" href="toplevel.html#Synopsis-14">Synopsis</a></li>
779
<li><a name="toc-Standard-Options-14" href="toplevel.html#Standard-Options-14">Standard Options</a></li>
780
<li><a name="toc-Arguments-for-Toplevel" href="toplevel.html#Arguments-for-Toplevel">Arguments for Toplevel</a></li>
781
<li><a name="toc-Description-11" href="toplevel.html#Description-11">Description</a></li>
782
<li><a name="toc-A-Toplevel-Widget_0027s-Arguments" href="toplevel.html#A-Toplevel-Widget_0027s-Arguments">A Toplevel Widget’s Arguments</a></li>
783
<li><a name="toc-Bindings-8" href="toplevel.html#Bindings-8">Bindings</a></li>
784
<li><a name="toc-Keywords-14" href="toplevel.html#Keywords-14">Keywords</a></li>
787
<li><a name="toc-Control-1" href="Control.html#Control">3 Control</a>
788
<ul class="no-bullet">
789
<li><a name="toc-after-1" href="after.html#after">3.1 after</a>
790
<ul class="no-bullet">
791
<li><a name="toc-Synopsis-15" href="after.html#Synopsis-15">Synopsis</a></li>
792
<li><a name="toc-Description-12" href="after.html#Description-12">Description</a></li>
793
<li><a name="toc-Keywords-15" href="after.html#Keywords-15">Keywords</a></li>
795
<li><a name="toc-bind-1" href="bind.html#bind">3.2 bind</a>
796
<ul class="no-bullet">
797
<li><a name="toc-Synopsis-16" href="bind.html#Synopsis-16">Synopsis</a></li>
798
<li><a name="toc-Description-13" href="bind.html#Description-13">Description</a></li>
799
<li><a name="toc-Keywords-16" href="bind.html#Keywords-16">Keywords</a></li>
801
<li><a name="toc-destroy-1" href="destroy.html#destroy">3.3 destroy</a>
802
<ul class="no-bullet">
803
<li><a name="toc-Synopsis-17" href="destroy.html#Synopsis-17">Synopsis</a></li>
804
<li><a name="toc-Description-14" href="destroy.html#Description-14">Description</a></li>
805
<li><a name="toc-Keywords-17" href="destroy.html#Keywords-17">Keywords</a></li>
807
<li><a name="toc-tk_002ddialog-1" href="tk_002ddialog.html#tk_002ddialog">3.4 tk-dialog</a>
808
<ul class="no-bullet">
809
<li><a name="toc-Synopsis-18" href="tk_002ddialog.html#Synopsis-18">Synopsis</a></li>
810
<li><a name="toc-Description-15" href="tk_002ddialog.html#Description-15">Description</a></li>
811
<li><a name="toc-Keywords-18" href="tk_002ddialog.html#Keywords-18">Keywords</a></li>
813
<li><a name="toc-exit-1" href="exit.html#exit">3.5 exit</a>
814
<ul class="no-bullet">
815
<li><a name="toc-Synopsis-19" href="exit.html#Synopsis-19">Synopsis</a></li>
816
<li><a name="toc-Description-16" href="exit.html#Description-16">Description</a></li>
817
<li><a name="toc-Keywords-19" href="exit.html#Keywords-19">Keywords</a></li>
819
<li><a name="toc-focus-1" href="focus.html#focus">3.6 focus</a>
820
<ul class="no-bullet">
821
<li><a name="toc-Synopsis-20" href="focus.html#Synopsis-20">Synopsis</a></li>
822
<li><a name="toc-Description-17" href="focus.html#Description-17">Description</a></li>
823
<li><a name="toc-_0022Focus-Events_0022" href="focus.html#g_t_0022Focus-Events_0022">"Focus Events"</a></li>
824
<li><a name="toc-Keywords-20" href="focus.html#Keywords-20">Keywords</a></li>
826
<li><a name="toc-grab-1" href="grab.html#grab">3.7 grab</a>
827
<ul class="no-bullet">
828
<li><a name="toc-Synopsis-21" href="grab.html#Synopsis-21">Synopsis</a></li>
829
<li><a name="toc-Description-18" href="grab.html#Description-18">Description</a></li>
830
<li><a name="toc-Bugs-2" href="grab.html#Bugs-2">Bugs</a></li>
831
<li><a name="toc-Keywords-21" href="grab.html#Keywords-21">Keywords</a></li>
833
<li><a name="toc-tk_002dlistbox_002dsingle_002dselect-1" href="tk_002dlistbox_002dsingle_002dselect.html#tk_002dlistbox_002dsingle_002dselect">3.8 tk-listbox-single-select</a>
834
<ul class="no-bullet">
835
<li><a name="toc-Synopsis-22" href="tk_002dlistbox_002dsingle_002dselect.html#Synopsis-22">Synopsis</a></li>
836
<li><a name="toc-Description-19" href="tk_002dlistbox_002dsingle_002dselect.html#Description-19">Description</a></li>
837
<li><a name="toc-Keywords-22" href="tk_002dlistbox_002dsingle_002dselect.html#Keywords-22">Keywords</a></li>
839
<li><a name="toc-lower-1" href="lower.html#lower">3.9 lower</a>
840
<ul class="no-bullet">
841
<li><a name="toc-Synopsis-23" href="lower.html#Synopsis-23">Synopsis</a></li>
842
<li><a name="toc-Description-20" href="lower.html#Description-20">Description</a></li>
843
<li><a name="toc-Keywords-23" href="lower.html#Keywords-23">Keywords</a></li>
845
<li><a name="toc-tk_002dmenu_002dbar-1" href="tk_002dmenu_002dbar.html#tk_002dmenu_002dbar">3.10 tk-menu-bar</a>
846
<ul class="no-bullet">
847
<li><a name="toc-Synopsis-24" href="tk_002dmenu_002dbar.html#Synopsis-24">Synopsis</a></li>
848
<li><a name="toc-Description-21" href="tk_002dmenu_002dbar.html#Description-21">Description</a></li>
849
<li><a name="toc-_0022Menu-Traversal-Bindings_0022" href="tk_002dmenu_002dbar.html#g_t_0022Menu-Traversal-Bindings_0022">"Menu Traversal Bindings"</a></li>
850
<li><a name="toc-Keywords-24" href="tk_002dmenu_002dbar.html#Keywords-24">Keywords</a></li>
852
<li><a name="toc-option-1" href="option.html#option">3.11 option</a>
853
<ul class="no-bullet">
854
<li><a name="toc-Synopsis-25" href="option.html#Synopsis-25">Synopsis</a></li>
855
<li><a name="toc-Description-22" href="option.html#Description-22">Description</a></li>
856
<li><a name="toc-Keywords-25" href="option.html#Keywords-25">Keywords</a></li>
858
<li><a name="toc-options-1" href="options.html#options">3.12 options</a>
859
<ul class="no-bullet">
860
<li><a name="toc-Description-23" href="options.html#Description-23">Description</a></li>
861
<li><a name="toc-Keywords-26" href="options.html#Keywords-26">Keywords</a></li>
863
<li><a name="toc-pack_002dold-1" href="pack_002dold.html#pack_002dold">3.13 pack-old</a>
864
<ul class="no-bullet">
865
<li><a name="toc-Synopsis-26" href="pack_002dold.html#Synopsis-26">Synopsis</a></li>
866
<li><a name="toc-Description-24" href="pack_002dold.html#Description-24">Description</a></li>
867
<li><a name="toc-Keywords-27" href="pack_002dold.html#Keywords-27">Keywords</a></li>
869
<li><a name="toc-pack-1" href="pack.html#pack">3.14 pack</a>
870
<ul class="no-bullet">
871
<li><a name="toc-Synopsis-27" href="pack.html#Synopsis-27">Synopsis</a></li>
872
<li><a name="toc-Description-25" href="pack.html#Description-25">Description</a></li>
873
<li><a name="toc-_0022The-Packer-Algorithm_0022" href="pack.html#g_t_0022The-Packer-Algorithm_0022">"The Packer Algorithm"</a></li>
874
<li><a name="toc-_0022Expansion_0022" href="pack.html#g_t_0022Expansion_0022">"Expansion"</a></li>
875
<li><a name="toc-_0022Geometry-Propagation_0022" href="pack.html#g_t_0022Geometry-Propagation_0022">"Geometry Propagation"</a></li>
876
<li><a name="toc-_0022Restrictions-On-Master-Windows_0022" href="pack.html#g_t_0022Restrictions-On-Master-Windows_0022">"Restrictions On Master Windows"</a></li>
877
<li><a name="toc-_0022Packing-Order_0022" href="pack.html#g_t_0022Packing-Order_0022">"Packing Order"</a></li>
878
<li><a name="toc-Keywords-28" href="pack.html#Keywords-28">Keywords</a></li>
880
<li><a name="toc-place-1" href="place.html#place">3.15 place</a>
881
<ul class="no-bullet">
882
<li><a name="toc-Synopsis-28" href="place.html#Synopsis-28">Synopsis</a></li>
883
<li><a name="toc-Description-26" href="place.html#Description-26">Description</a></li>
884
<li><a name="toc-_0022Fine-Points_0022" href="place.html#g_t_0022Fine-Points_0022">"Fine Points"</a></li>
885
<li><a name="toc-Keywords-29" href="place.html#Keywords-29">Keywords</a></li>
887
<li><a name="toc-raise-1" href="raise.html#raise">3.16 raise</a>
888
<ul class="no-bullet">
889
<li><a name="toc-Synopsis-29" href="raise.html#Synopsis-29">Synopsis</a></li>
890
<li><a name="toc-Description-27" href="raise.html#Description-27">Description</a></li>
891
<li><a name="toc-Keywords-30" href="raise.html#Keywords-30">Keywords</a></li>
893
<li><a name="toc-selection-1" href="selection.html#selection">3.17 selection</a>
894
<ul class="no-bullet">
895
<li><a name="toc-Synopsis-30" href="selection.html#Synopsis-30">Synopsis</a></li>
896
<li><a name="toc-Description-28" href="selection.html#Description-28">Description</a></li>
897
<li><a name="toc-Keywords-31" href="selection.html#Keywords-31">Keywords</a></li>
899
<li><a name="toc-send-1" href="send.html#send">3.18 send</a>
900
<ul class="no-bullet">
901
<li><a name="toc-Synopsis-31" href="send.html#Synopsis-31">Synopsis</a></li>
902
<li><a name="toc-Description-29" href="send.html#Description-29">Description</a></li>
903
<li><a name="toc-Security" href="send.html#Security">Security</a></li>
904
<li><a name="toc-Keywords-32" href="send.html#Keywords-32">Keywords</a></li>
906
<li><a name="toc-tk-1" href="tk.html#tk">3.19 tk</a>
907
<ul class="no-bullet">
908
<li><a name="toc-Synopsis-32" href="tk.html#Synopsis-32">Synopsis</a></li>
909
<li><a name="toc-Description-30" href="tk.html#Description-30">Description</a></li>
910
<li><a name="toc-Keywords-33" href="tk.html#Keywords-33">Keywords</a></li>
912
<li><a name="toc-tkerror-1" href="tkerror.html#tkerror">3.20 tkerror</a>
913
<ul class="no-bullet">
914
<li><a name="toc-Synopsis-33" href="tkerror.html#Synopsis-33">Synopsis</a></li>
915
<li><a name="toc-Description-31" href="tkerror.html#Description-31">Description</a></li>
916
<li><a name="toc-Keywords-34" href="tkerror.html#Keywords-34">Keywords</a></li>
918
<li><a name="toc-tkvars-1" href="tkvars.html#tkvars">3.21 tkvars</a>
919
<ul class="no-bullet">
920
<li><a name="toc-Description-32" href="tkvars.html#Description-32">Description</a></li>
921
<li><a name="toc-Keywords-35" href="tkvars.html#Keywords-35">Keywords</a></li>
923
<li><a name="toc-tkwait-1" href="tkwait.html#tkwait">3.22 tkwait</a>
924
<ul class="no-bullet">
925
<li><a name="toc-Synopsis-34" href="tkwait.html#Synopsis-34">Synopsis</a></li>
926
<li><a name="toc-Description-33" href="tkwait.html#Description-33">Description</a></li>
927
<li><a name="toc-Keywords-36" href="tkwait.html#Keywords-36">Keywords</a></li>
929
<li><a name="toc-update-1" href="update.html#update">3.23 update</a>
930
<ul class="no-bullet">
931
<li><a name="toc-Synopsis-35" href="update.html#Synopsis-35">Synopsis</a></li>
932
<li><a name="toc-Description-34" href="update.html#Description-34">Description</a></li>
933
<li><a name="toc-Keywords-37" href="update.html#Keywords-37">Keywords</a></li>
935
<li><a name="toc-winfo-1" href="winfo.html#winfo">3.24 winfo</a>
936
<ul class="no-bullet">
937
<li><a name="toc-Synopsis-36" href="winfo.html#Synopsis-36">Synopsis</a></li>
938
<li><a name="toc-Description-35" href="winfo.html#Description-35">Description</a></li>
939
<li><a name="toc-Keywords-38" href="winfo.html#Keywords-38">Keywords</a></li>
941
<li><a name="toc-wm-1" href="#wm">3.25 wm</a>
942
<ul class="no-bullet">
943
<li><a name="toc-Synopsis-37" href="#Synopsis-37">Synopsis</a></li>
944
<li><a name="toc-Description-36" href="#Description-36">Description</a></li>
945
<li><a name="toc-_0022Sources-Of-Geometry-Information_0022" href="#g_t_0022Sources-Of-Geometry-Information_0022">"Sources Of Geometry Information"</a></li>
946
<li><a name="toc-_0022Ungridded-Geometry-Management_0022" href="#g_t_0022Ungridded-Geometry-Management_0022">"Ungridded Geometry Management"</a></li>
947
<li><a name="toc-_0022Gridded-Geometry-Management_0022" href="#g_t_0022Gridded-Geometry-Management_0022">"Gridded Geometry Management"</a></li>
948
<li><a name="toc-Bugs-3" href="#Bugs-3">Bugs</a></li>
949
<li><a name="toc-Keywords-39" href="#Keywords-39">Keywords</a></li>
958
Previous: <a href="winfo.html#winfo" accesskey="p" rel="prev">winfo</a>, Up: <a href="Control.html#Control" accesskey="u" rel="up">Control</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>