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

📄 sayings.tcl

📁 在Linux下做的QuadTree的程序
💻 TCL
字号:
# sayings.tcl --## This demonstration script creates a listbox that can be scrolled# both horizontally and vertically.  It displays a collection of# well-known sayings.## RCS: @(#) $Id: sayings.tcl,v 1.2 1998/09/14 18:23:30 stanton Exp $if {![info exists widgetDemo]} {    error "This script should be run from the \"widget\" demo."}set w .sayingscatch {destroy $w}toplevel $wwm title $w "Listbox Demonstration (well-known sayings)"wm iconname $w "sayings"positionWindow $wlabel $w.msg -font $font -wraplength 4i -justify left -text "The listbox below contains a collection of well-known sayings.  You can scan the list using either of the scrollbars or by dragging in the listbox window with button 2 pressed."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 1frame $w.frame -borderwidth 10pack $w.frame -side top -expand yes -fill yscrollbar $w.frame.yscroll -command "$w.frame.list yview"scrollbar $w.frame.xscroll -orient horizontal \    -command "$w.frame.list xview"listbox $w.frame.list -width 20 -height 10 -setgrid 1 \    -yscroll "$w.frame.yscroll set" -xscroll "$w.frame.xscroll set"grid $w.frame.list -row 0 -column 0 -rowspan 1 -columnspan 1 -sticky newsgrid $w.frame.yscroll -row 0 -column 1 -rowspan 1 -columnspan 1 -sticky newsgrid $w.frame.xscroll -row 1 -column 0 -rowspan 1 -columnspan 1 -sticky newsgrid rowconfig    $w.frame 0 -weight 1 -minsize 0grid columnconfig $w.frame 0 -weight 1 -minsize 0$w.frame.list insert 0 "Waste not, want not" "Early to bed and early to rise makes a man healthy, wealthy, and wise" "Ask not what your country can do for you, ask what you can do for your country" "I shall return" "NOT" "A picture is worth a thousand words" "User interfaces are hard to build" "Thou shalt not steal" "A penny for your thoughts" "Fool me once, shame on you;  fool me twice, shame on me" "Every cloud has a silver lining" "Where there's smoke there's fire" "It takes one to know one" "Curiosity killed the cat" "Take this job and shove it" "Up a creek without a paddle" "I'm mad as hell and I'm not going to take it any more" "An apple a day keeps the doctor away" "Don't look a gift horse in the mouth"

⌨️ 快捷键说明

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