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

📄 butgeom.tcl

📁 linux系统下的音频通信
💻 TCL
字号:
# This file creates a visual test for button layout.  It is part of# the Tk visual test suite, which is invoked via the "visual" script.## SCCS: @(#) butGeom.tcl 1.3 97/06/13 13:46:57catch {destroy .t}toplevel .twm title .t "Visual Tests for Button Geometry"wm iconname .t "Button Geometry"wm geom .t +0+0wm minsize .t 1 1label .t.l -text {This screen exercises the layout mechanisms for various flavors of buttons.  Select display options below, and they will be applied to all of the button widgets.  In order to see the effects of different anchor positions, expand the window so that there is extra space in the buttons.  The letter "o" in "automatically" should be underlined in the right column of widgets.} -wraplength 5ipack .t.l -side top -fill bothbutton .t.quit -text Quit -command {destroy .t}pack .t.quit -side bottom -pady 2mset sepId 1proc sep {} {    global sepId    frame .t.sep$sepId -height 2 -bd 1 -relief sunken    pack .t.sep$sepId -side top -padx 2m -pady 2m -fill x    incr sepId}# Create buttons that control configuration options.frame .t.controlpack .t.control -side top -fill x -pady 3mframe .t.control.leftframe .t.control.rightpack .t.control.left .t.control.right -side left -expand 1 -fill xlabel .t.anchorLabel -text "Anchor:"frame .t.control.left.f -width 6c -height 3cpack .t.anchorLabel .t.control.left.f -in .t.control.left -side topforeach anchor {nw n ne w center e sw s se} {    button .t.anchor-$anchor -text $anchor -command "config -anchor $anchor"}place .t.anchor-nw -in .t.control.left.f -relx 0 -relwidth 0.333 \	-rely 0 -relheight 0.333place .t.anchor-n -in .t.control.left.f -relx 0.333 -relwidth 0.333 \	-rely 0 -relheight 0.333place .t.anchor-ne -in .t.control.left.f -relx 0.666 -relwidth 0.333 \	-rely 0 -relheight 0.333place .t.anchor-w -in .t.control.left.f -relx 0 -relwidth 0.333 \	-rely 0.333 -relheight 0.333place .t.anchor-center -in .t.control.left.f -relx 0.333 -relwidth 0.333 \	-rely 0.333 -relheight 0.333place .t.anchor-e -in .t.control.left.f -relx 0.666 -relwidth 0.333 \	-rely 0.333 -relheight 0.333place .t.anchor-sw -in .t.control.left.f -relx 0 -relwidth 0.333 \	-rely 0.666 -relheight 0.333place .t.anchor-s -in .t.control.left.f -relx 0.333 -relwidth 0.333 \	-rely 0.666 -relheight 0.333place .t.anchor-se -in .t.control.left.f -relx 0.666 -relwidth 0.333 \	-rely 0.666 -relheight 0.333set justify centerradiobutton .t.justify-left -text "Justify Left" -relief flat \	-command "config -justify left" -variable justify \	-value leftradiobutton .t.justify-center -text "Justify Center" -relief flat \	-command "config -justify center" -variable justify \	-value centerradiobutton .t.justify-right -text "Justify Right" -relief flat \	-command "config -justify right" -variable justify \	-value rightpack .t.justify-left .t.justify-center .t.justify-right \	-in .t.control.right -anchor wsepframe .t.f1pack .t.f1 -side top -expand 1 -fill bothsepframe .t.f2pack .t.f2 -side top -expand 1 -fill bothsepframe .t.f3pack .t.f3 -side top -expand 1 -fill bothsepframe .t.f4pack .t.f4 -side top -expand 1 -fill bothseplabel .t.l1 -text Label -bd 2 -relief sunkenlabel .t.l2 -text "Explicit\nnewlines\n\nin the text" -bd 2 -relief sunkenlabel .t.l3 -text "This text is quite long, so it must be wrapped automatically by Tk" -wraplength 2i -bd 2 -relief sunken -underline 50pack .t.l1 .t.l2 .t.l3 -in .t.f1 -side left -padx 5m -pady 3m \	-expand y -fill bothbutton .t.b1 -text Buttonbutton .t.b2 -text "Explicit\nnewlines\n\nin the text"button .t.b3 -text "This text is quite long, so it must be wrapped automatically by Tk" -wraplength 2i -underline 50pack .t.b1 .t.b2 .t.b3 -in .t.f2 -side left -padx 5m -pady 3m \	-expand y -fill bothcheckbutton .t.c1 -text Checkbutton -variable acheckbutton .t.c2 -text "Explicit\nnewlines\n\nin the text" -variable bcheckbutton .t.c3 -text "This text is quite long, so it must be wrapped automatically by Tk" -wraplength 2i -variable c -underline 50pack .t.c1 .t.c2 .t.c3 -in .t.f3 -side left -padx 5m -pady 3m \	-expand y -fill bothradiobutton .t.r1 -text Radiobutton -value aradiobutton .t.r2 -text "Explicit\nnewlines\n\nin the text" -value bradiobutton .t.r3 -text "This text is quite long, so it must be wrapped automatically by Tk" -wraplength 2i -value c -underline 50pack .t.r1 .t.r2 .t.r3 -in .t.f4 -side left -padx 5m -pady 3m \	-expand y -fill bothproc config {option value} {    foreach w {.t.l1 .t.l2 .t.l3 .t.b1 .t.b2 .t.b3 .t.c1 .t.c2 .t.c3	    .t.r1 .t.r2 .t.r3} {	$w configure $option $value    }}

⌨️ 快捷键说明

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