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

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

?? widget.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
?? 第 1 頁 / 共 4 頁
字號:
    variable _class    variable _optiontype    set class $_class($path)    upvar 0 ${class}::opt  classopt    upvar 0 ${class}::map  classmap    upvar 0 ${class}::$path:opt pathopt    upvar 0 ${class}::$path:mod pathmod    set window [_get_window $class $path]    foreach {option value} $options {        if { ![info exists classopt($option)] } {            return -code error "unknown option \"$option\""        }        set optdesc $classopt($option)        set type    [lindex $optdesc 0]        if { [string equal $type "Synonym"] } {            set option  [lindex $optdesc 1]            set optdesc $classopt($option)            set type    [lindex $optdesc 0]        }        if { ![lindex $optdesc 2] } {            set newval [$_optiontype($type) $option $value [lindex $optdesc 3]]            if { [info exists classmap($option)] } {		set window [_get_window $class $window]                foreach {subpath subclass realopt} $classmap($option) {                    if { [string length $subclass] } {			set curval [${subclass}::cget $window$subpath $realopt]                        ${subclass}::configure $window$subpath $realopt $newval                    } else {			set curval [$window$subpath cget $realopt]                        $window$subpath configure $realopt $newval                    }                }            } else {		set curval $pathopt($option)		set pathopt($option) $newval	    }	    set pathmod($option) [expr {![string equal $newval $curval]}]        }    }    return {}}# ----------------------------------------------------------------------------#  Command Widget::cget# ----------------------------------------------------------------------------proc Widget::cget { path option } {    if { ![info exists ::Widget::_class($path)] } {        return -code error "unknown widget $path"    }    set class $::Widget::_class($path)    if { ![info exists ${class}::opt($option)] } {        return -code error "unknown option \"$option\""    }    set optdesc [set ${class}::opt($option)]    set type    [lindex $optdesc 0]    if {[string equal $type "Synonym"]} {        set option [lindex $optdesc 1]    }    if { [info exists ${class}::map($option)] } {	foreach {subpath subclass realopt} [set ${class}::map($option)] {break}	set path "[_get_window $class $path]$subpath"	return [$path cget $realopt]    }    upvar 0 ${class}::$path:opt pathopt    set pathopt($option)}# ----------------------------------------------------------------------------#  Command Widget::subcget# ----------------------------------------------------------------------------proc Widget::subcget { path subwidget } {    set class $::Widget::_class($path)    upvar 0 ${class}::$path:opt pathopt    upvar 0 ${class}::map$subwidget submap    upvar 0 ${class}::$path:init pathinit    set result {}    foreach realopt [array names submap] {	if { [info exists pathinit($submap($realopt))] } {	    lappend result $realopt $pathopt($submap($realopt))	}    }    return $result}# ----------------------------------------------------------------------------#  Command Widget::hasChanged# ----------------------------------------------------------------------------proc Widget::hasChanged { path option pvalue } {    upvar    $pvalue value    set class $::Widget::_class($path)    upvar 0 ${class}::$path:mod pathmod    set value   [Widget::cget $path $option]    set result  $pathmod($option)    set pathmod($option) 0    return $result}proc Widget::hasChangedX { path option args } {    set class $::Widget::_class($path)    upvar 0 ${class}::$path:mod pathmod    set result  $pathmod($option)    set pathmod($option) 0    foreach option $args {	lappend result $pathmod($option)	set pathmod($option) 0    }    set result}# ----------------------------------------------------------------------------#  Command Widget::setoption# ----------------------------------------------------------------------------proc Widget::setoption { path option value } {#    variable _class#    set class $_class($path)#    upvar 0 ${class}::$path:opt pathopt#    set pathopt($option) $value    Widget::configure $path [list $option $value]}# ----------------------------------------------------------------------------#  Command Widget::getoption# ----------------------------------------------------------------------------proc Widget::getoption { path option } {#    set class $::Widget::_class($path)#    upvar 0 ${class}::$path:opt pathopt#    return $pathopt($option)    return [Widget::cget $path $option]}# Widget::getMegawidgetOption --##	Bypass the superfluous checks in cget and just directly peer at the#	widget's data space.  This is much more fragile than cget, so it #	should only be used with great care, in places where speed is critical.## Arguments:#	path	widget to lookup options for.#	option	option to retrieve.## Results:#	value	option value.proc Widget::getMegawidgetOption {path option} {    set class $::Widget::_class($path)    upvar 0 ${class}::${path}:opt pathopt    set pathopt($option)}# Widget::setMegawidgetOption --##	Bypass the superfluous checks in cget and just directly poke at the#	widget's data space.  This is much more fragile than configure, so it #	should only be used with great care, in places where speed is critical.## Arguments:#	path	widget to lookup options for.#	option	option to retrieve.#	value	option value.## Results:#	value	option value.proc Widget::setMegawidgetOption {path option value} {    set class $::Widget::_class($path)    upvar 0 ${class}::${path}:opt pathopt    set pathopt($option) $value}# ----------------------------------------------------------------------------#  Command Widget::_get_window#  returns the window corresponding to widget path# ----------------------------------------------------------------------------proc Widget::_get_window { class path } {    set idx [string last "#" $path]    if { $idx != -1 && [string equal [string range $path [expr {$idx+1}] end] $class] } {        return [string range $path 0 [expr {$idx-1}]]    } else {        return $path    }}# ----------------------------------------------------------------------------#  Command Widget::_get_configure#  returns the configuration list of options#  (as tk widget do - [$w configure ?option?])# ----------------------------------------------------------------------------proc Widget::_get_configure { path options } {    variable _class    set class $_class($path)    upvar 0 ${class}::opt classopt    upvar 0 ${class}::map classmap    upvar 0 ${class}::$path:opt pathopt    upvar 0 ${class}::$path:mod pathmod    set len [llength $options]    if { !$len } {        set result {}        foreach option [lsort [array names classopt]] {            set optdesc $classopt($option)            set type    [lindex $optdesc 0]            if { [string equal $type "Synonym"] } {                set syn     $option                set option  [lindex $optdesc 1]                set optdesc $classopt($option)                set type    [lindex $optdesc 0]            } else {                set syn ""            }            if { [string equal $type "TkResource"] } {                set alt [lindex [lindex $optdesc 3] 1]            } else {                set alt ""            }            set res [_configure_option $option $alt]            if { $syn == "" } {                lappend result [concat $option $res [list [lindex $optdesc 1]] [list [cget $path $option]]]            } else {                lappend result [list $syn [lindex $res 0]]            }        }        return $result    } elseif { $len == 1 } {        set option  [lindex $options 0]        if { ![info exists classopt($option)] } {            return -code error "unknown option \"$option\""        }        set optdesc $classopt($option)        set type    [lindex $optdesc 0]        if { [string equal $type "Synonym"] } {            set option  [lindex $optdesc 1]            set optdesc $classopt($option)            set type    [lindex $optdesc 0]        }        if { [string equal $type "TkResource"] } {            set alt [lindex [lindex $optdesc 3] 1]        } else {            set alt ""        }        set res [_configure_option $option $alt]        return [concat $option $res [list [lindex $optdesc 1]] [list [cget $path $option]]]    }}# ----------------------------------------------------------------------------#  Command Widget::_configure_option# ----------------------------------------------------------------------------proc Widget::_configure_option { option altopt } {    variable _optiondb    variable _optionclass    if { [info exists _optiondb($option)] } {        set optdb $_optiondb($option)    } else {        set optdb [string range $option 1 end]    }    if { [info exists _optionclass($option)] } {        set optclass $_optionclass($option)    } elseif { [string length $altopt] } {        if { [info exists _optionclass($altopt)] } {            set optclass $_optionclass($altopt)        } else {            set optclass [string range $altopt 1 end]        }    } else {        set optclass [string range $option 1 end]    }    return [list $optdb $optclass]}# ----------------------------------------------------------------------------#  Command Widget::_get_tkwidget_options# ----------------------------------------------------------------------------proc Widget::_get_tkwidget_options { tkwidget } {    variable _tk_widget    variable _optiondb    variable _optionclass        set widget ".#BWidget#$tkwidget"    if { ![winfo exists $widget] || ![info exists _tk_widget($tkwidget)] } {	set widget [$tkwidget $widget]	# JDC: Withdraw toplevels, otherwise visible	if {[string equal $tkwidget "toplevel"]} {	    wm withdraw $widget	}	set config [$widget configure]	foreach optlist $config {	    set opt [lindex $optlist 0]	    if { [llength $optlist] == 2 } {		set refsyn [lindex $optlist 1]		# search for class		set idx [lsearch $config [list * $refsyn *]]		if { $idx == -1 } {		    if { [string index $refsyn 0] == "-" } {			# search for option (tk8.1b1 bug)			set idx [lsearch $config [list $refsyn * *]]		    } else {			# last resort			set idx [lsearch $config [list -[string tolower $refsyn] * *]]		    }		    if { $idx == -1 } {			# fed up with "can't read classopt()"			return -code error "can't find option of synonym $opt"		    }		}		set syn [lindex [lindex $config $idx] 0]		# JDC: used 4 (was 3) to get def from optiondb		set def [lindex [lindex $config $idx] 4]		lappend _tk_widget($tkwidget) [list $opt $syn $def]	    } else {		# JDC: used 4 (was 3) to get def from optiondb		set def [lindex $optlist 4]		lappend _tk_widget($tkwidget) [list $opt $def]		set _optiondb($opt)    [lindex $optlist 1]		set _optionclass($opt) [lindex $optlist 2]	    }	}    }    return $_tk_widget($tkwidget)}# ----------------------------------------------------------------------------#  Command Widget::_test_tkresource# ----------------------------------------------------------------------------proc Widget::_test_tkresource { option value arg } {#    set tkwidget [lindex $arg 0]#    set realopt  [lindex $arg 1]    foreach {tkwidget realopt} $arg break    set path     ".#BWidget#$tkwidget"    set old      [$path cget $realopt]    $path configure $realopt $value    set res      [$path cget $realopt]    $path configure $realopt $old    return $res}# ----------------------------------------------------------------------------#  Command Widget::_test_bwresource# ----------------------------------------------------------------------------proc Widget::_test_bwresource { option value arg } {    return -code error "bad option type BwResource in widget"}# ----------------------------------------------------------------------------#  Command Widget::_test_synonym# ----------------------------------------------------------------------------proc Widget::_test_synonym { option value arg } {    return -code error "bad option type Synonym in widget"}# ----------------------------------------------------------------------------#  Command Widget::_test_color# ----------------------------------------------------------------------------proc Widget::_test_color { option value arg } {    if {[catch {winfo rgb . $value} color]} {        return -code error "bad $option value \"$value\": must be a colorname \

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一级特黄大欧美久久久| 日韩专区欧美专区| 午夜精品久久久久久久久久久| 午夜av一区二区三区| 国精产品一区一区三区mba桃花| 日韩欧美国产成人一区二区| 中文字幕一区二区三区av| 三级亚洲高清视频| 不卡的电影网站| 精品国产一区二区三区av性色 | 欧美日韩精品一二三区| 国产亚洲精品福利| 视频一区二区中文字幕| 色屁屁一区二区| 国产精品久久久久影视| 国产综合色精品一区二区三区| 在线欧美小视频| 综合久久国产九一剧情麻豆| 国产一区二区三区国产| 日韩精品在线一区二区| 亚洲大片在线观看| 欧美亚洲一区三区| 亚洲同性gay激情无套| 高清shemale亚洲人妖| 久久久www免费人成精品| 麻豆久久久久久久| 日韩欧美亚洲国产另类| 免费在线观看日韩欧美| 欧美久久久久久久久| 亚洲一二三专区| 欧美日本在线视频| 亚洲国产视频一区二区| 欧美挠脚心视频网站| 亚洲综合图片区| 欧美人与z0zoxxxx视频| 日韩中文字幕不卡| 欧美一区二区播放| 蜜臀91精品一区二区三区| 日韩欧美国产小视频| 久久www免费人成看片高清| 欧美成人女星排名| 国产在线精品一区二区三区不卡 | 国产女同互慰高潮91漫画| 国产精品影音先锋| 亚洲国产精品av| 99精品视频在线观看免费| 亚洲色图.com| 欧美日本在线播放| 蜜臀av性久久久久蜜臀aⅴ流畅 | 日韩在线观看一区二区| 日韩欧美亚洲一区二区| 国产成人精品免费| 亚洲品质自拍视频| 精品视频999| 精品在线免费视频| 国产自产视频一区二区三区| 国产成人一区在线| 日韩一区在线免费观看| 欧美日韩一区二区在线观看视频| 日本vs亚洲vs韩国一区三区 | 国产日本欧洲亚洲| 色婷婷综合久久久久中文| 不卡欧美aaaaa| 亚洲一级二级三级在线免费观看| 欧美一区二区女人| 国产成人精品午夜视频免费| 亚洲精品成人在线| 久久影视一区二区| 色哟哟一区二区三区| 美女任你摸久久 | 日韩高清一区在线| 国产视频一区在线观看| 欧美婷婷六月丁香综合色| 国精产品一区一区三区mba视频| 亚洲欧美国产三级| 亚洲精品在线三区| 欧美图片一区二区三区| 成人午夜伦理影院| 肉色丝袜一区二区| 国产精品乱码久久久久久| 91麻豆精品国产自产在线观看一区 | 亚洲日本一区二区| 精品国产成人系列| 欧美午夜精品一区二区蜜桃| 国产精品88av| 美日韩一区二区| 一区二区国产视频| 中文字幕精品三区| 26uuu精品一区二区三区四区在线| 色噜噜狠狠成人网p站| 粉嫩av一区二区三区| 久久国产精品露脸对白| 丝袜a∨在线一区二区三区不卡| 国产精品看片你懂得| 日韩欧美激情四射| 91麻豆精品国产91久久久资源速度| 不卡免费追剧大全电视剧网站| 精彩视频一区二区| 日本sm残虐另类| 五月婷婷久久综合| 亚洲一区二区三区在线播放| 国产精品国产三级国产普通话三级 | 国产专区欧美精品| 蜜桃精品视频在线| 亚洲18女电影在线观看| 亚洲一区二区在线视频| 中文字幕在线观看不卡| 亚洲国产成人在线| 国产欧美一区二区三区网站 | 欧美一区二区在线免费播放| 日本精品一区二区三区高清| av电影一区二区| 91小视频在线免费看| 91首页免费视频| 色婷婷综合视频在线观看| 一本色道久久综合亚洲aⅴ蜜桃| 久久综合狠狠综合| 2020国产精品久久精品美国| 日韩欧美一区二区视频| 精品日韩av一区二区| 精品乱码亚洲一区二区不卡| 欧美v亚洲v综合ⅴ国产v| 欧美xxxxxxxx| 国产精品区一区二区三| 国产精品盗摄一区二区三区| 亚洲你懂的在线视频| 亚洲一卡二卡三卡四卡五卡| 天天影视涩香欲综合网| 九九**精品视频免费播放| 国产乱色国产精品免费视频| 成人免费毛片嘿嘿连载视频| 91在线看国产| 欧美老年两性高潮| 欧美精品一区男女天堂| 国产精品久久久久久久久搜平片| 国产精品国产成人国产三级| 一片黄亚洲嫩模| 久久se精品一区二区| 国产91精品在线观看| 91麻豆123| 制服丝袜一区二区三区| 欧美激情一区不卡| 一个色妞综合视频在线观看| 日日骚欧美日韩| 成人av网站在线| 欧美日韩aaaaaa| 欧美国产成人在线| 天天色综合成人网| 国产a区久久久| 欧美色图片你懂的| 久久综合成人精品亚洲另类欧美| 亚洲丝袜精品丝袜在线| 久久99精品国产麻豆婷婷洗澡| 国产91丝袜在线播放0| 欧美精选午夜久久久乱码6080| 久久色视频免费观看| 亚洲精品国产无套在线观| 黄色成人免费在线| 欧美亚洲综合网| 国产女人18毛片水真多成人如厕| 亚洲国产一区二区三区| 粉嫩av一区二区三区在线播放| 欧美人与禽zozo性伦| 中文字幕一区日韩精品欧美| 美女视频网站黄色亚洲| 色av成人天堂桃色av| 久久久国产综合精品女国产盗摄| 亚州成人在线电影| 一本色道综合亚洲| 中文字幕欧美激情一区| 另类小说欧美激情| 欧美三级电影一区| 亚洲天堂a在线| 国产在线不卡一区| 日韩亚洲欧美中文三级| 亚洲亚洲精品在线观看| www.亚洲免费av| 亚洲精品在线一区二区| 日韩二区三区四区| 欧美日韩免费电影| 一区二区三区国产精品| 丁香激情综合国产| 久久久久久黄色| 狠狠狠色丁香婷婷综合激情| 欧美老女人在线| 午夜精彩视频在线观看不卡| 91在线高清观看| 男人的天堂亚洲一区| 宅男在线国产精品| 日韩电影免费在线看| 欧美日韩dvd在线观看| 亚洲国产综合人成综合网站| 91美女片黄在线| 亚洲欧洲日产国产综合网| 成人精品一区二区三区四区| 国产午夜三级一区二区三| 国产最新精品免费| 欧美激情一区二区三区全黄| 国产电影一区二区三区| 国产性做久久久久久|