⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itclvars.n

📁 这是一个Linux下的集成开发环境
💻 N
字号:
'\"'\" Copyright (c) 1993-1998  Lucent Technologies, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" RCS: $Id: itclvars.n,v 1.1 2003/02/05 10:53:53 mdejong Exp $'\".so man.macros.TH itclvars n 3.0 itcl "[incr\ Tcl]".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEitclvars \- variables used by [incr\ Tcl].BE.SH DESCRIPTION.PPThe following global variables are created and managed automaticallyby the \fB[incr\ Tcl]\fR library.  Except where noted below, thesevariables should normally be treated as read-only by application-specificcode and by users..TP\fBitcl::library\fRWhen an interpreter is created, \fB[incr\ Tcl]\fR initializes this variableto hold the name of a directory containing the system library of\fB[incr\ Tcl]\fR scripts.  The initial value of \fBitcl::library\fRis set from the ITCL_LIBRARY environment variable if it exists,or from a compiled-in value otherwise..TP\fBitcl::patchLevel\fRWhen an interpreter is created, \fB[incr\ Tcl]\fR initializes thisvariable to hold the current patch level for \fB[incr\ Tcl]\fR.For example, the value "\fB2.0p1\fR" indicates \fB[incr\ Tcl]\fRversion 2.0 with the first set of patches applied..TP\fBitcl::purist\fRWhen an interpreter is created containing Tcl/Tk and the\fB[incr\ Tcl]\fR namespace facility, this variable controlsa "backward-compatibility" mode for widget access..spIn vanilla Tcl/Tk, there is a single pool of commands, so theaccess command for a widget is the same as the window name.When a widget is created within a namespace, however, its accesscommand is installed in that namespace, and should be accessedoutside of the namespace using a qualified name.  For example,.CSnamespace foo {    namespace bar {        button .b -text "Testing"    }}foo::bar::.b configure -background redpack .b.CENote that the window name "\fC.b\fR" is still used in conjunctionwith commands like \fBpack\fR and \fBdestroy\fR.  However, theaccess command for the widget (i.e., name that appears as the\fIfirst\fR argument on a command line) must be more specific..spThe "\fBwinfo command\fR" command can be used to query thefully-qualified access command for any widget, so one can write:.CS[winfo command .b] configure -background red.CEand this is good practice when writing library procedures.  Also,in conjunction with the \fBbind\fR command, the "%q" field can beused in place of "%W" as the access command:.CSbind Button <Key-Return> {%q flash; %q invoke}.CEWhile this behavior makes sense from the standpoint of encapsulation,it causes problems with existing Tcl/Tk applications.  Many existingapplications are written with bindings that use "%W".  Manylibrary procedures assume that the window name is the accesscommand..spThe \fBitcl::purist\fR variable controls a backward-compatibilitymode.  By default, this variable is "0", and the window namecan be used as an access command in any context.  Whenever the\fBunknown\fR procedure stumbles across a widget name, it simplyuses "\fBwinfo command\fR" to determine the appropriate commandname.  If this variable is set to "1", this backward-compatibilitymode is disabled.  This gives better encapsulation, but using thewindow name as the access command may lead to "invalid command"errors..TP\fBitcl::version\fRWhen an interpreter is created, \fB[incr\ Tcl]\fR initializes thisvariable to hold the version number of the form \fIx.y\fR.Changes to \fIx\fR represent major changes with probableincompatibilities and changes to \fIy\fR represent small enhancementsand bug fixes that retain backward compatibility..SH KEYWORDSitcl, variables

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -