📄 tlist.tcl
字号:
# This tests the TList widget.### Assumptions:# None#proc About {} { return "Basic tests for the TList widget"}proc Test {} { # # Test the creation # test {tixTList} {args} test {tixTList .t -ff} {unknown} test {tixTList .t -width} {missing} if {[info command .t] != {}} { error "widget not destroyed when creation failed" } set t [tixTList .t] test {$t} {args} # # Test the "insert" command # test {$t insert} {args} test {$t insert 0 -foo} {missing} test {$t insert 0 -foo bar} {unknown} test {$t insert 0 -itemtype foo} {unknown} test {$t insert 0 -itemtype text -image foo} {unknown} test {$t insert 0 -itemtype text -text Hello} pack $t}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -