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

📄 loadtk.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1995-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: @(#) loadTk.n 1.5 97/08/18 17:44:43'\" .so man.macros.TH "Safe Tk" n 8.0 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEloadTk \- Load Tk into a safe interpreter..SH SYNOPSIS\fB::safe::loadTk \fIslave\fR ?\fB\-use\fR \fIwindowId\fR? ?\fB\-display\fR \fIdisplayName\fR? .BESafe Tk is based on Safe Tcl, which provides a mechanism that allows restricted and mediatedaccess to auto-loading and packages for safe interpreters.Safe Tk adds the ability to configure the interpreterfor safe Tk operations and load Tk into safe interpreters..SH DESCRIPTION.PPThe \fB::safe::loadTk\fR command initializes the required data structuresin the named safe interpreter and then loads Tk into it.The command returns the name of the safe interpreter.If \fB\-use\fR is specified, the window identified by the specified systemdependent identifier \fIwindowId\fR is used to contain the \fB``.''\fRwindow of the safe interpreter; it can be any valid id, eventually referencing a window belonging to another application. As a convenience,if the window you plan to use is a Tk Window of the application youcan use the window name (eg: \fB.x.y\fR) instead of its window Id (\fB[winfo id .x.y]\fR).When \fB\-use\fR is not specified,a new toplevel window is created for the \fB``.''\fR window ofthe safe interpreter. On X11 if you want the embedded windowto use another display than the default one, specify it with\fB\-display\fR.See the \fBSECURITY ISSUES\fR section below for implementation details..SH SECURITY ISSUES.PPPlease read the \fBsafe\fR manual page for Tcl to learn about the basicsecurity considerations for Safe Tcl..PP\fB::safe::loadTk\fR adds the value of \fBtk_library\fR taken from the masterinterpreter to the virtual access path of the safe interpreter so thatauto-loading will work in the safe interpreter..PP.PPTk initialization is now safe with respect to not trustingthe slave's state for startup. \fB::safe::loadTk\fRregisters the slave's name sowhen the Tk initialization (\fBTk_SafeInit\fR) is calledand in turn calls the master's \fB::safe::InitTk\fR it willreturn the desired \fBargv\fR equivalent (\fB\-use\fR \fIwindowId\fR, correct \fB\-display\fR, etc...)..PPWhen \fB\-use\fR is not used, the new toplevel created is speciallydecorated so the user is always aware that the user interface presented comesfrom a potentially unsafe code and can easily delete the correspondinginterpreter..PPOn X11, conflicting \fB\-use\fR and \fB\-display\fR are likelyto generate a fatal X error..SH "SEE ALSO"safe(n), interp(n), library(n), load(n), package(n), source(n), unknown(n) .SH KEYWORDSalias, auto\-loading, auto_mkindex, load, master interpreter, safeinterpreter, slave interpreter, source

⌨️ 快捷键说明

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