event.test

来自「linux系统下的音频通信」· TEST 代码 · 共 42 行

TEST
42
字号
# This file is a Tcl script to test the code in tkEvent.c.  It is# organized in the standard fashion for Tcl tests.## Copyright (c) 1994 The Regents of the University of California.# Copyright (c) 1994-1995 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: @(#) event.test 1.6 96/09/12 09:25:44if {[info procs test] != "test"} {    source defs}foreach i [winfo children .] {    destroy $i}wm geometry . {}raise .# XXX This test file is woefully incomplete.  Right now it only tests# a few of the procedures in tkEvent.c.  Please add more tests whenever# possible.test event-1.1 {Tk_HandleEvent procedure, filter events for dead windows} {    button .b -text Test    pack .b    bindtags .b .b    update    bind .b <Destroy> {	lappend x destroy	event generate .b <1>    }    bind .b <1> {	lappend x button    }    set x {}    destroy .b    set x} {destroy}

⌨️ 快捷键说明

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