~ubuntu-branches/ubuntu/vivid/gcl/vivid

« back to all changes in this revision

Viewing changes to info/gcl-tk/tk.html

  • Committer: Package Import Robot
  • Author(s): Camm Maguire
  • Date: 2014-05-16 17:41:33 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: package-import@ubuntu.com-20140516174133-czs0uktsjj2vkhxk
2.6.11preĀ testĀ 11

Show diffs side-by-side

added added

removed removed

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