Debian Codegraph @

info/gcl-tk/tk.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>tk (GCL TK Manual)</title>
7
8 <meta name="description" content="tk (GCL TK Manual)">
9 <meta name="keywords" content="tk (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="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
15 <link href="Control.html" rel="up" title="Control">
16 <link href="tkerror.html" rel="next" title="tkerror">
17 <link href="send.html" rel="prev" title="send">
18 <style type="text/css">
19 <!--
20 a.summary-letter {text-decoration: none}
21 blockquote.indentedblock {margin-right: 0em}
22 div.display {margin-left: 3.2em}
23 div.example {margin-left: 3.2em}
24 div.lisp {margin-left: 3.2em}
25 kbd {font-style: oblique}
26 pre.display {font-family: inherit}
27 pre.format {font-family: inherit}
28 pre.menu-comment {font-family: serif}
29 pre.menu-preformatted {font-family: serif}
30 span.nolinebreak {white-space: nowrap}
31 span.roman {font-family: initial; font-weight: normal}
32 span.sansserif {font-family: sans-serif; font-weight: normal}
33 ul.no-bullet {list-style: none}
34 -->
35 </style>
36
37
38 </head>
39
40 <body lang="en">
41 <span id="tk"></span><div class="header">
42 <p>
43 Next: <a href="tkerror.html" accesskey="n" rel="next">tkerror</a>, Previous: <a href="send.html" accesskey="p" rel="prev">send</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
44 </div>
45 <hr>
46 <span id="tk-1"></span><h3 class="section">3.19 tk</h3>
47
48 <p>tk \- Manipulate Tk internal state
49 </p><span id="Synopsis-32"></span><h4 class="unnumberedsubsec">Synopsis</h4>
50 <p><b>tk</b><span class="roman"> </span><i>option </i><span class="roman">?</span><i>arg arg ...</i>?
51 </p>
52 <span id="Description-30"></span><h4 class="unnumberedsubsec">Description</h4>
53
54 <p>The <b>tk</b> command provides access to miscellaneous
55 elements of Tk&rsquo;s internal state.
56 Most of the information manipulated by this command pertains to the
57 application as a whole, or to a screen or display, rather than to a
58 particular window.
59 The command can take any of a number of different forms
60 depending on the <i>option</i> argument. The legal forms are:
61 </p>
62 <dl compact="compact">
63 <dt><b>tk :colormodel </b><i>window</i><span class="roman"> ?</span><i>newValue</i>?</dt>
64 <dd><p>If <i>newValue</i> isn&rsquo;t specified, this command returns the current
65 color model in use for <i>window</i>&rsquo;s screen, which will be either
66 <b>color</b><span class="roman"> or </span><b>monochrome</b>.
67 If <i>newValue</i><span class="roman"> is specified, then it must be either </span><b>color</b>
68 or <b>monochrome</b> or an abbreviation of one of them;
69 the color model for <i>window</i>&rsquo;s screen is set to this value.
70 </p></dd>
71 </dl>
72
73
74 <p>The color model is used by Tk and its widgets to determine whether
75 it should display in black and white only or use colors.
76 A single color model is shared by all of the windows managed by one
77 process on a given screen.
78 The color model for a screen is set initially by Tk to <b>monochrome</b>
79 if the display has four or fewer bit planes and to <b>color</b> otherwise.
80 The color model will automatically be changed from <b>color</b> to
81 <b>monochrome</b> if Tk fails to allocate a color because all entries
82 in the colormap were in use.
83 An application can change its own color model at any time (e.g. it
84 might change the model to <b>monochrome</b> in order to conserve
85 colormap entries, or it might set the model to <b>color</b>
86 to use color on a four-bit display in special circumstances), but
87 an application is not allowed to change the color model to <b>color</b>
88 unless the screen has at least two bit planes.
89 .RE
90 </p>
91 <span id="Keywords-33"></span><h4 class="unnumberedsubsec">Keywords</h4>
92 <p>color model, internal state
93 </p><hr>
94 <div class="header">
95 <p>
96 Next: <a href="tkerror.html" accesskey="n" rel="next">tkerror</a>, Previous: <a href="send.html" accesskey="p" rel="prev">send</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
97 </div>
98
99
100
101 </body>
102 </html>