📄 compound.tcl
字号:
proc About {} { return "the compound image type"}proc Test {} { set num 3 # Test for create # # test {image create compound -foo} {missing} test {image create compound -window} {missing} test {image create compound -window foo} {path name} test {set image1 [image create compound -window .b]} {path name} for {set i 0} {$i < $num} {incr i} { button .b$i pack .b$i } # (0) Empty image # test {set image0 [image create compound -window .b0]} # (1) Simple image # test {set image1 [image create compound -window .b1]} $image1 add line $image1 add text -text Hello # (2) Two lines # test {set image2 [image create compound -window .b2]} $image2 add line $image2 add text -text "Line One" $image2 add line $image2 add text -text "Line Two" # Display them # for {set i 0} {$i < $num} {incr i} { .b$i config -image [set image$i] }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -