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

📄 labentry.tcl

📁 这是一个Linux下的集成开发环境
💻 TCL
字号:
# labentry.tcl --##	Tests the TixLabelEntry widget.## Copyright (c) 1996, Expert Interface Technologies## See the file "license.terms" for information on usage and redistribution# of this file, and for a DISCLAIMER OF ALL WARRANTIES.#proc About {} {    return "Testing the TixLabelEntry widget"}proc Test {} {    TestBlock labent-1.1 {LabelEntry focus management} {	set t [toplevel .t]	set w [tixLabelEntry .t.c -label "Stuff: "]	pack $w -padx 20 -pady 10	tixLabelEntry .t.d -label "Stuff: "	pack .t.d -padx 20 -pady 10	focus $w	update	set px [winfo pointerx $t]	set py [winfo pointery $t]	set W [winfo width $t]	set H [winfo height $t]	if {$W < 100} {	    set W 100	}	if {$H < 100} {	    set H 100	}	set mx [expr $px - $W / 2]	set my [expr $py - $H / 2]	# We must move the window under the cursor in order to test	# the current focus	#	wm geometry $t $W\x$H+$mx+$my	raise $t	update	Assert {[focus -lastfor $t] == [$w subwidget entry]}	destroy $t    }}

⌨️ 快捷键说明

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