Debian Codegraph @

info/gcl-tk/wm.html

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