1tkvars(n)                    Tk Built-In Commands                    tkvars(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tkvars - Variables used or set by Tk
9_________________________________________________________________
10
11

DESCRIPTION

13       The  following  Tcl  variables  are either set or used by Tk at various
14       times in its execution:
15
16       tk_library     This variable holds the file name for a  directory  con‐
17                      taining  a  library of Tcl scripts related to Tk.  These
18                      scripts include an initialization file that is  normally
19                      processed  whenever  a  Tk  application  starts up, plus
20                      other files containing procedures that implement default
21                      behaviors for widgets.  The initial value of tcl_library
22                      is set when Tk is added to an interpreter;  this is done
23                      by  searching several different directories until one is
24                      found that contains an appropriate  Tk  startup  script.
25                      If  the TK_LIBRARY environment variable exists, then the
26                      directory it names is checked first.  If  TK_LIBRARY  is
27                      not  set  or does not refer to an appropriate directory,
28                      then Tk checks several other directories based on a com‐
29                      piled-in  default  location,  the  location  of  the Tcl
30                      library directory, the location of the binary containing
31                      the application, and the current working directory.  The
32                      variable can be modified by an application to switch  to
33                      a different library.
34
35       tk_patchLevel  Contains  a  decimal  integer  giving  the current patch
36                      level for Tk.  The patch level is incremented  for  each
37                      new  release  or  patch,  and  it uniquely identifies an
38                      official version of Tk.
39
40       tk::Priv       This variable is an array containing several  pieces  of
41                      information  that  are  private  to Tk.  The elements of
42                      tk::Priv are used by Tk library procedures  and  default
43                      bindings.   They should not be accessed by any code out‐
44                      side Tk.
45
46       tk_strictMotif This variable is set to zero by default.  If an applica‐
47                      tion  sets  it  to  one,  then  Tk attempts to adhere as
48                      closely as possible to  Motif  look-and-feel  standards.
49                      For example, active elements such as buttons and scroll‐
50                      bar sliders will  not  change  color  when  the  pointer
51                      passes over them.
52
53       tk_textRedraw
54
55       tk_textRelayout
56                      These  variables  are set by text widgets when they have
57                      debugging turned on.  The values written to these  vari‐
58                      ables  can  be  used to test or debug text widget opera‐
59                      tions.  These variables are mostly  used  by  Tk's  test
60                      suite.
61
62       tk_version     Tk sets this variable in the interpreter for each appli‐
63                      cation.  The variable holds the current  version  number
64                      of  the  Tk  library in the form major.minor.  Major and
65                      minor are integers.  The major version number  increases
66                      in  any  Tk  release  that includes changes that are not
67                      backward compatible (i.e. whenever existing Tk  applica‐
68                      tions  and  scripts  may have to change to work with the
69                      new release).  The minor version number  increases  with
70                      each  new  release  of Tk, except that it resets to zero
71                      whenever the major version number changes.
72
73

KEYWORDS

75       variables, version, text
76
77
78
79Tk                                    4.1                            tkvars(n)
Impressum