亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? widget.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
?? 第 1 頁 / 共 4 頁
字號:
		or #RRGGBB triplet"    }    return $value}# ----------------------------------------------------------------------------#  Command Widget::_test_string# ----------------------------------------------------------------------------proc Widget::_test_string { option value arg } {    set value}# ----------------------------------------------------------------------------#  Command Widget::_test_flag# ----------------------------------------------------------------------------proc Widget::_test_flag { option value arg } {    set len [string length $value]    set res ""    for {set i 0} {$i < $len} {incr i} {        set c [string index $value $i]        if { [string first $c $arg] == -1 } {            return -code error "bad [string range $option 1 end] value \"$value\": characters must be in \"$arg\""        }        if { [string first $c $res] == -1 } {            append res $c        }    }    return $res}# -----------------------------------------------------------------------------#  Command Widget::_test_enum# -----------------------------------------------------------------------------proc Widget::_test_enum { option value arg } {    if { [lsearch $arg $value] == -1 } {        set last [lindex   $arg end]        set sub  [lreplace $arg end end]        if { [llength $sub] } {            set str "[join $sub ", "] or $last"        } else {            set str $last        }        return -code error "bad [string range $option 1 end] value \"$value\": must be $str"    }    return $value}# -----------------------------------------------------------------------------#  Command Widget::_test_int# -----------------------------------------------------------------------------proc Widget::_test_int { option value arg } {    if { ![string is int -strict $value] || \	    ([string length $arg] && \	    ![expr [string map [list %d $value] $arg]]) } {		    return -code error "bad $option value\			    \"$value\": must be integer ($arg)"    }    return $value}# -----------------------------------------------------------------------------#  Command Widget::_test_boolean# -----------------------------------------------------------------------------proc Widget::_test_boolean { option value arg } {    if { ![string is boolean -strict $value] } {        return -code error "bad $option value \"$value\": must be boolean"    }    # Get the canonical form of the boolean value (1 for true, 0 for false)    return [string is true $value]}# -----------------------------------------------------------------------------#  Command Widget::_test_padding# -----------------------------------------------------------------------------proc Widget::_test_padding { option values arg } {    set len [llength $values]    if {$len < 1 || $len > 2} {        return -code error "bad pad value \"$values\":\                        must be positive screen distance"    }    foreach value $values {        if { ![string is int -strict $value] || \            ([string length $arg] && \            ![expr [string map [list %d $value] $arg]]) } {                return -code error "bad pad value \"$value\":\                                must be positive screen distance ($arg)"        }    }    return $values}# Widget::_get_padding --##       Return the requesting padding value for a padding option.## Arguments:#	path		Widget to get the options for.#       option          The name of the padding option.#	index		The index of the padding.  If the index is empty,#                       the first padding value is returned.## Results:#	Return a numeric value that can be used for padding.proc Widget::_get_padding { path option {index 0} } {    set pad [Widget::cget $path $option]    set val [lindex $pad $index]    if {$val == ""} { set val [lindex $pad 0] }    return $val}# -----------------------------------------------------------------------------#  Command Widget::focusNext#  Same as tk_focusNext, but call Widget::focusOK# -----------------------------------------------------------------------------proc Widget::focusNext { w } {    set cur $w    while 1 {	# Descend to just before the first child of the current widget.	set parent $cur	set children [winfo children $cur]	set i -1	# Look for the next sibling that isn't a top-level.	while 1 {	    incr i	    if {$i < [llength $children]} {		set cur [lindex $children $i]		if {[winfo toplevel $cur] == $cur} {		    continue		} else {		    break		}	    }	    # No more siblings, so go to the current widget's parent.	    # If it's a top-level, break out of the loop, otherwise	    # look for its next sibling.	    set cur $parent	    if {[winfo toplevel $cur] == $cur} {		break	    }	    set parent [winfo parent $parent]	    set children [winfo children $parent]	    set i [lsearch -exact $children $cur]	}	if {($cur == $w) || [focusOK $cur]} {	    return $cur	}    }}# -----------------------------------------------------------------------------#  Command Widget::focusPrev#  Same as tk_focusPrev, but call Widget::focusOK# -----------------------------------------------------------------------------proc Widget::focusPrev { w } {    set cur $w    while 1 {	# Collect information about the current window's position	# among its siblings.  Also, if the window is a top-level,	# then reposition to just after the last child of the window.    	if {[winfo toplevel $cur] == $cur}  {	    set parent $cur	    set children [winfo children $cur]	    set i [llength $children]	} else {	    set parent [winfo parent $cur]	    set children [winfo children $parent]	    set i [lsearch -exact $children $cur]	}	# Go to the previous sibling, then descend to its last descendant	# (highest in stacking order.  While doing this, ignore top-levels	# and their descendants.  When we run out of descendants, go up	# one level to the parent.	while {$i > 0} {	    incr i -1	    set cur [lindex $children $i]	    if {[winfo toplevel $cur] == $cur} {		continue	    }	    set parent $cur	    set children [winfo children $parent]	    set i [llength $children]	}	set cur $parent	if {($cur == $w) || [focusOK $cur]} {	    return $cur	}    }}# ----------------------------------------------------------------------------#  Command Widget::focusOK#  Same as tk_focusOK, but handles -editable option and whole tags list.# ----------------------------------------------------------------------------proc Widget::focusOK { w } {    set code [catch {$w cget -takefocus} value]    if { $code == 1 } {        return 0    }    if {($code == 0) && ($value != "")} {	if {$value == 0} {	    return 0	} elseif {$value == 1} {	    return [winfo viewable $w]	} else {	    set value [uplevel \#0 $value $w]            if {$value != ""} {		return $value	    }        }    }    if {![winfo viewable $w]} {	return 0    }    set code [catch {$w cget -state} value]    if {($code == 0) && ($value == "disabled")} {	return 0    }    set code [catch {$w cget -editable} value]    if {($code == 0) && ($value == 0)} {        return 0    }    set top [winfo toplevel $w]    foreach tags [bindtags $w] {        if { ![string equal $tags $top]  &&             ![string equal $tags "all"] &&             [regexp Key [bind $tags]] } {            return 1        }    }    return 0}proc Widget::traverseTo { w } {    set focus [focus]    if {![string equal $focus ""]} {	event generate $focus <<TraverseOut>>    }    focus $w    event generate $w <<TraverseIn>>}# Widget::varForOption --##	Retrieve a fully qualified variable name for the option specified.#	If the option is not one for which a variable exists, throw an error #	(ie, those options that map directly to widget options).## Arguments:#	path	megawidget to get an option var for.#	option	option to get a var for.## Results:#	varname	name of the variable, fully qualified, suitable for tracing.proc Widget::varForOption {path option} {    variable _class    variable _optiontype    set class $_class($path)    upvar 0 ${class}::$path:opt pathopt    if { ![info exists pathopt($option)] } {	error "unable to find variable for option \"$option\""    }    set varname "::Widget::${class}::$path:opt($option)"    return $varname}# Widget::getVariable --##       Get a variable from within the namespace of the widget.## Arguments:#	path		Megawidget to get the variable for.#	varName		The variable name to retrieve.#       newVarName	The variable name to refer to in the calling proc.## Results:#	Creates a reference to newVarName in the calling proc.proc Widget::getVariable { path varName {newVarName ""} } {    variable _class    set class $_class($path)    if {![string length $newVarName]} { set newVarName $varName }    uplevel 1 [list upvar \#0 ${class}::$path:$varName $newVarName]}# Widget::options --##       Return a key-value list of options for a widget.  This can#       be used to serialize the options of a widget and pass them#       on to a new widget with the same options.## Arguments:#	path		Widget to get the options for.#	args		A list of options.  If empty, all options are returned.## Results:#	Returns list of options as: -option value -option value ...proc Widget::options { path args } {    if {[llength $args]} {        foreach option $args {            lappend options [_get_configure $path $option]        }    } else {        set options [_get_configure $path {}]    }    set result [list]    foreach list $options {        if {[llength $list] < 5} { continue }        lappend result [lindex $list 0] [lindex $list end]    }    return $result}# Widget::getOption --##	Given a list of widgets, determine which option value to use.#	The widgets are given to the command in order of highest to#	lowest.  Starting with the lowest widget, whichever one does#	not match the default option value is returned as the value.#	If all the widgets are default, we return the highest widget's#	value.## Arguments:#	option		The option to check.#	default		The default value.  If any widget in the list#			does not match this default, its value is used.#	args		A list of widgets.## Results:#	Returns the value of the given option to use.#proc Widget::getOption { option default args } {    for {set i [expr [llength $args] -1]} {$i >= 0} {incr i -1} {	set widget [lindex $args $i]	set value  [Widget::cget $widget $option]	if {[string equal $value $default]} { continue }	return $value    }    return $value}proc Widget::nextIndex { path node } {    Widget::getVariable $path autoIndex    if {![info exists autoIndex]} { set autoIndex -1 }    return [string map [list #auto [incr autoIndex]] $node]}proc Widget::exists { path } {    variable _class    return [info exists _class($path)]}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩视频在线观看| 日韩福利电影在线| 亚洲精品国产无天堂网2021| 免费成人结看片| 不卡在线观看av| 欧美精品在线一区二区| 中文天堂在线一区| 免费精品视频在线| 99久久精品国产麻豆演员表| 欧美不卡一区二区| 亚洲欧洲制服丝袜| 国产精品538一区二区在线| 欧美少妇xxx| 亚洲精品综合在线| 国产白丝精品91爽爽久久| 4438成人网| 亚洲国产视频网站| av电影在线观看完整版一区二区| 日韩精品在线一区| 亚洲国产成人tv| 日本韩国欧美三级| 国产精品素人视频| 精品一二三四区| 日韩一级片网站| 日韩成人午夜精品| 欧美日韩国产电影| 一区二区三区欧美日| 成人精品免费网站| 欧美国产丝袜视频| 国产麻豆日韩欧美久久| 日韩欧美一区二区三区在线| 日本午夜精品一区二区三区电影| 欧美日韩色一区| 亚洲h动漫在线| 欧美精品18+| 欧美aaa在线| 26uuu色噜噜精品一区| 另类小说图片综合网| 欧美欧美午夜aⅴ在线观看| 久久草av在线| 日韩女优制服丝袜电影| 久久成人精品无人区| 精品日韩一区二区三区免费视频| 美女视频网站久久| 欧美一级免费大片| 久久激情五月激情| 26uuu精品一区二区| 国产精品18久久久久久久久| 亚洲国产高清在线观看视频| www.久久久久久久久| 一区二区三区欧美| 欧美精品v国产精品v日韩精品| 午夜av电影一区| 欧美va日韩va| 成人免费观看视频| 伊人开心综合网| 欧美中文字幕一区二区三区| 亚洲福利电影网| 欧美一区二区在线不卡| 韩国精品免费视频| 国产精品国产三级国产aⅴ入口| av高清不卡在线| 亚洲国产日韩综合久久精品| 日韩欧美一二区| 国产福利一区二区三区视频在线| 亚洲日本欧美天堂| 91精品欧美福利在线观看| 九九视频精品免费| 中文字幕一区二区三区四区 | 亚洲欧美自拍偷拍| 色吧成人激情小说| 毛片一区二区三区| 国产精品私人影院| 欧美色图片你懂的| 国产宾馆实践打屁股91| 亚洲一区二区三区在线| 亚洲精品一区二区三区四区高清| 99精品视频一区二区| 蜜臀久久99精品久久久久宅男| 亚洲欧洲在线观看av| 欧美一级日韩不卡播放免费| 99精品国产99久久久久久白柏| 日本美女一区二区三区视频| 亚洲欧美日韩国产另类专区| 欧美zozo另类异族| 色狠狠桃花综合| 高清成人免费视频| 亚洲www啪成人一区二区麻豆| 国产亚洲视频系列| 欧美一区二区三区在线看| 一本一道久久a久久精品综合蜜臀| 男女性色大片免费观看一区二区| 亚洲欧美另类久久久精品2019| 2020国产精品自拍| 欧美日韩精品免费观看视频| 91在线观看视频| 国产一区二区调教| 爽爽淫人综合网网站| 亚洲自拍偷拍欧美| 中文字幕在线视频一区| 久久女同精品一区二区| 欧美一卡2卡三卡4卡5免费| 91色.com| 色婷婷久久一区二区三区麻豆| 成人一级片在线观看| 玖玖九九国产精品| 日韩黄色一级片| 婷婷丁香久久五月婷婷| 一区二区激情视频| 亚洲欧美在线视频| 国产精品国产馆在线真实露脸| 久久精品人人做人人综合| 欧美一区二区三区免费大片| 在线播放中文字幕一区| 欧美视频一区二区在线观看| 欧美色网站导航| 欧美在线制服丝袜| 欧美在线一区二区| 在线观看中文字幕不卡| 欧美在线免费观看视频| 欧美亚洲国产bt| 欧美色欧美亚洲另类二区| 欧美亚洲另类激情小说| 欧美久久久久中文字幕| 欧美一区午夜精品| 欧美不卡一区二区三区四区| 亚洲婷婷综合色高清在线| 久久久久久亚洲综合| 国产三级精品在线| 中文字幕精品一区二区精品绿巨人| 国产欧美日韩亚州综合| 国产精品天美传媒沈樵| 亚洲欧美aⅴ...| 亚洲综合一区二区| 日韩激情视频在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 国产精品亚洲视频| 不卡的av网站| 欧美日韩中文字幕一区| 日韩免费看的电影| 久久久天堂av| 亚洲色图另类专区| 午夜欧美视频在线观看 | 中文字幕一区二区三中文字幕 | 国产亚洲欧美日韩在线一区| 国产精品污网站| 亚洲永久免费视频| 精品一区二区三区香蕉蜜桃 | 99国产精品久久久久久久久久 | 日日夜夜一区二区| 国内精品在线播放| 99国产欧美另类久久久精品| 777奇米四色成人影色区| 久久美女高清视频| 夜夜嗨av一区二区三区中文字幕 | 717成人午夜免费福利电影| 精品久久一区二区三区| 中文字幕一区日韩精品欧美| 男女性色大片免费观看一区二区| 成人黄色免费短视频| 欧美日韩大陆在线| 欧美国产精品一区| 石原莉奈在线亚洲二区| 不卡一区二区三区四区| 欧美一级理论性理论a| 成人免费在线观看入口| 精品在线你懂的| 在线免费视频一区二区| 亚洲精品一区二区三区在线观看| 亚洲尤物在线视频观看| 成人性生交大片免费看中文| 日韩网站在线看片你懂的| 国产精品国产三级国产普通话99| 另类小说一区二区三区| 欧美私人免费视频| 国产精品日韩成人| 免费欧美日韩国产三级电影| 欧美在线|欧美| 国产精品超碰97尤物18| 国模一区二区三区白浆| 337p亚洲精品色噜噜狠狠| 亚洲人成亚洲人成在线观看图片| 国产一区二区三区在线观看免费视频 | 亚洲一区二区中文在线| 99麻豆久久久国产精品免费| 国产色综合久久| 美国一区二区三区在线播放| 欧美性受极品xxxx喷水| 亚洲人成精品久久久久| 成人avav影音| 国产精品理论在线观看| 国产乱码一区二区三区| 精品国产免费人成在线观看| 蜜桃视频在线观看一区| 欧美一区三区二区| 日韩精品色哟哟| 欧美精品少妇一区二区三区| 亚洲va在线va天堂| 日本高清视频一区二区| 亚洲精品免费看|