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

📄 button.tcl

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 TCL
字号:
# button.tcl --## This demonstration script creates a toplevel window containing# several button widgets.## RCS: @(#) $Id: button.tcl 144 2003-02-05 10:56:26Z mdejong $if {![info exists widgetDemo]} {    error "This script should be run from the \"widget\" demo."}set w .buttoncatch {destroy $w}toplevel $wwm title $w "Button Demonstration"wm iconname $w "button"positionWindow $wlabel $w.msg -font $font -wraplength 4i -justify left -text "If you click on any of the four buttons below, the background of the button area will change to the color indicated in the button.  You can press Tab to move among the buttons, then press Space to invoke the current button."pack $w.msg -side topframe $w.buttonspack $w.buttons -side bottom -fill x -pady 2mbutton $w.buttons.dismiss -text Dismiss -command "destroy $w"button $w.buttons.code -text "See Code" -command "showCode $w"pack $w.buttons.dismiss $w.buttons.code -side left -expand 1button $w.b1 -text "Peach Puff" -width 10 \    -command "$w config -bg PeachPuff1; $w.buttons config -bg PeachPuff1"button $w.b2 -text "Light Blue" -width 10 \    -command "$w config -bg LightBlue1; $w.buttons config -bg LightBlue1"button $w.b3 -text "Sea Green" -width 10 \    -command "$w config -bg SeaGreen2;  $w.buttons config -bg SeaGreen2"button $w.b4 -text "Yellow" -width 10 \    -command "$w config -bg Yellow1;    $w.buttons config -bg Yellow1"pack $w.b1 $w.b2 $w.b3 $w.b4 -side top -expand yes -pady 2

⌨️ 快捷键说明

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