tlist.tcl

来自「这是一个Linux下的集成开发环境」· TCL 代码 · 共 39 行

TCL
39
字号
# 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 + =
减小字号Ctrl + -
显示快捷键?