📄 tkwait.n
字号:
'\"'\" Copyright (c) 1992 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: @(#) tkwait.n 1.13 96/07/31 08:19:23'\" .so man.macros.TH tkwait n "" Tk "Tk Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEtkwait \- Wait for variable to change or window to be destroyed.SH SYNOPSIS\fBtkwait variable \fIname\fR.sp\fBtkwait visibility \fIname\fR.sp\fBtkwait window \fIname\fR.BE.SH DESCRIPTION.PPThe \fBtkwait\fR command waits for one of several things to happen,then it returns without taking any other actions.The return value is always an empty string.If the first argument is \fBvariable\fR (or any abbreviation ofit) then the second argument is the name of a global variable and thecommand waits for that variable to be modified.If the first argument is \fBvisibility\fR (or any abbreviationof it) then the second argument is the name of a window and the\fBtkwait\fR command waits for a change in itsvisibility state (as indicated by the arrival of a VisibilityNotifyevent). This form is typically used to wait for a newly-createdwindow to appear on the screen before taking some action.If the first argument is \fBwindow\fR (or any abbreviationof it) then the second argument is the name of a window and the\fBtkwait\fR command waits for that window to be destroyed.This form is typically used to wait for a user to finish interactingwith a dialog box before using the result of that interaction..PPWhile the \fBtkwait\fR command is waiting it processes events inthe normal fashion, so the application will continue to respondto user interactions.If an event handler invokes \fBtkwait\fR again, the nested callto \fBtkwait\fR must complete before the outer call can complete..SH KEYWORDSvariable, visibility, wait, window
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -