| 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>tkvars (GCL TK Manual)</title> |
| 7 |
|
| 8 |
<meta name="description" content="tkvars (GCL TK Manual)"> |
| 9 |
<meta name="keywords" content="tkvars (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="tkwait.html" rel="next" title="tkwait"> |
| 17 |
<link href="tkerror.html" rel="prev" title="tkerror"> |
| 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="tkvars"></span><div class="header"> |
| 42 |
<p> |
| 43 |
Next: <a href="tkwait.html" accesskey="n" rel="next">tkwait</a>, Previous: <a href="tkerror.html" accesskey="p" rel="prev">tkerror</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p> |
| 44 |
</div> |
| 45 |
<hr> |
| 46 |
<span id="tkvars-1"></span><h3 class="section">3.21 tkvars</h3> |
| 47 |
|
| 48 |
<p>tkvars \- Variables used or set by Tk |
| 49 |
</p> |
| 50 |
<span id="Description-32"></span><h4 class="unnumberedsubsec">Description</h4> |
| 51 |
|
| 52 |
<p>The following Tcl variables are either set or used by Tk at various times |
| 53 |
in its execution: |
| 54 |
</p> |
| 55 |
<dl compact="compact"> |
| 56 |
<dt><b>tk_library</b></dt> |
| 57 |
<dd><p>Tk sets this variable hold the name of a directory containing a library |
| 58 |
of Tcl scripts related to Tk. These scripts include an initialization |
| 59 |
file that is normally processed whenever a Tk application starts up, |
| 60 |
plus other files containing procedures that implement default behaviors |
| 61 |
for widgets. |
| 62 |
The value of this variable is taken from the TK_LIBRARY environment |
| 63 |
variable, if one exists, or else from a default value compiled into |
| 64 |
Tk. |
| 65 |
</p></dd> |
| 66 |
<dt><b>tk_patchLevel</b></dt> |
| 67 |
<dd><p>Contains a decimal integer giving the current patch level for Tk. |
| 68 |
The patch level is incremented for each new release or patch, and |
| 69 |
it uniquely identifies an official version of Tk. |
| 70 |
</p></dd> |
| 71 |
<dt><b>tk_priv</b></dt> |
| 72 |
<dd><p>This variable is an array containing several pieces of information |
| 73 |
that are private to Tk. The elements of <b>tk_priv</b> are used by |
| 74 |
Tk library procedures and default bindings. |
| 75 |
They should not be accessed by any code outside Tk. |
| 76 |
</p></dd> |
| 77 |
<dt><b>tk_strictMotif</b></dt> |
| 78 |
<dd><p>This variable is set to zero by default. |
| 79 |
If an application sets it to one, then Tk attempts to adhere as |
| 80 |
closely as possible to Motif look-and-feel standards. |
| 81 |
For example, active elements such as buttons and scrollbar |
| 82 |
sliders will not change color when the pointer passes over them. |
| 83 |
</p></dd> |
| 84 |
<dt><b>tk_version</b></dt> |
| 85 |
<dd><p>Tk sets this variable in the interpreter for each application. |
| 86 |
The variable holds the current version number of the Tk |
| 87 |
library in the form <i>major</i><span class="roman">.</span><i>minor</i><span class="roman">. </span><i>Major</i> and |
| 88 |
<i>minor</i> are integers. The major version number increases in |
| 89 |
any Tk release that includes changes that are not backward compatible |
| 90 |
(i.e. whenever existing Tk applications and scripts may have to change to |
| 91 |
work with the new release). The minor version number increases with |
| 92 |
each new release of Tk, except that it resets to zero whenever the |
| 93 |
major version number changes. |
| 94 |
</p></dd> |
| 95 |
<dt><b>tkVersion</b></dt> |
| 96 |
<dd><p>Has the same value as <b>tk_version</b>. This variable is obsolete and |
| 97 |
will be deleted soon. |
| 98 |
</p> |
| 99 |
</dd> |
| 100 |
</dl> |
| 101 |
<span id="Keywords-35"></span><h4 class="unnumberedsubsec">Keywords</h4> |
| 102 |
<p>variables, version |
| 103 |
</p><hr> |
| 104 |
<div class="header"> |
| 105 |
<p> |
| 106 |
Next: <a href="tkwait.html" accesskey="n" rel="next">tkwait</a>, Previous: <a href="tkerror.html" accesskey="p" rel="prev">tkerror</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p> |
| 107 |
</div> |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
</body> |
| 112 |
</html> |