📄 tkvars.n
字号:
'\"'\" Copyright (c) 1990-1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) tkvars.n 1.22 96/08/27 13:21:38'\" .so man.macros.TH tkvars n 4.1 Tk "Tk Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEtkvars \- Variables used or set by Tk.BE.SH DESCRIPTION.PPThe following Tcl variables are either set or used by Tk at various timesin its execution:.TP 15\fBtk_library\fRThis variable holds the file name for a directory containing a libraryof Tcl scripts related to Tk. These scripts include an initializationfile that is normally processed whenever a Tk application starts up,plus other files containing procedures that implement default behaviorsfor widgets.The initial value of \fBtcl_library\fR is set when Tk is added toan interpreter; this is done by searching several different directoriesuntil one is found that contains an appropriate Tk startup script.If the \fBTK_LIBRARY\fR environment variable exists, thenthe directory it names is checked first.If \fBTK_LIBRARY\fR isn't set or doesn't refer to an appropriatedirectory, then Tk checks several other directories based on acompiled-in default location, the location of the Tcl library directory,the location of the binary containing the application, and the currentworking directory.The variable can be modified by an application to switch to a differentlibrary..TP\fBtk_patchLevel\fRContains a decimal integer giving the current patch level for Tk.The patch level is incremented for each new release or patch, andit uniquely identifies an official version of Tk..TP\fBtkPriv\fRThis variable is an array containing several pieces of informationthat are private to Tk. The elements of \fBtkPriv\fR are used byTk library procedures and default bindings.They should not be accessed by any code outside Tk..TP\fBtk_strictMotif\fRThis variable is set to zero by default.If an application sets it to one, then Tk attempts to adhere asclosely as possible to Motif look-and-feel standards.For example, active elements such as buttons and scrollbarsliders will not change color when the pointer passes over them..TP 15\fBtk_version\fRTk sets this variable in the interpreter for each application.The variable holds the current version number of the Tklibrary in the form \fImajor\fR.\fIminor\fR. \fIMajor\fR and\fIminor\fR are integers. The major version number increases inany Tk release that includes changes that are not backward compatible(i.e. whenever existing Tk applications and scripts may have to change towork with the new release). The minor version number increases witheach new release of Tk, except that it resets to zero whenever themajor version number changes..SH KEYWORDSvariables, version
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -