亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品久久久久久久岛一牛影视| 欧美午夜精品免费| 久久伊人中文字幕| 国产精品888| 国产拍揄自揄精品视频麻豆| 国产精品资源在线| 国产三级精品视频| jiyouzz国产精品久久| 亚洲女女做受ⅹxx高潮| 欧美亚洲综合久久| 奇米四色…亚洲| 久久女同互慰一区二区三区| 国产69精品一区二区亚洲孕妇| 国产精品每日更新| 欧洲一区二区av| 免费美女久久99| 日本一区二区三区四区| 色综合天天综合网国产成人综合天| 一区二区不卡在线播放| 欧美电影在哪看比较好| 精品在线免费观看| 国产精品系列在线| 欧洲av一区二区嗯嗯嗯啊| 丝袜美腿成人在线| 26uuu精品一区二区三区四区在线| 国产成人av网站| 亚洲主播在线播放| 精品国产乱码久久久久久久久 | 波波电影院一区二区三区| 一区二区三区四区五区视频在线观看| 在线不卡一区二区| 成人av资源网站| 日韩电影网1区2区| 中文字幕中文乱码欧美一区二区| 欧美少妇一区二区| 成人性视频免费网站| 午夜电影网一区| 国产精品久久三| 91精品国产一区二区三区| zzijzzij亚洲日本少妇熟睡| 日本不卡高清视频| 亚洲欧美日韩国产一区二区三区 | 制服丝袜日韩国产| hitomi一区二区三区精品| 免费人成精品欧美精品| 国产精品高潮呻吟久久| 欧美电影免费观看高清完整版在线| www.亚洲色图.com| 精品一区二区三区视频| 亚洲国产欧美日韩另类综合| 久久久99精品久久| 日韩欧美中文字幕一区| 在线观看三级视频欧美| 成人免费毛片aaaaa**| 久久国产尿小便嘘嘘| 亚洲一区二区三区在线| 国产精品国产三级国产三级人妇| 日韩精品一区国产麻豆| 欧美日韩一卡二卡| 色婷婷综合久久久久中文一区二区 | 日本亚洲最大的色成网站www| 国产欧美精品一区二区色综合朱莉 | 亚洲午夜羞羞片| 国产精品久久99| 国产三级精品视频| 久久免费看少妇高潮| 欧美不卡视频一区| 91麻豆精品国产自产在线观看一区| 色老综合老女人久久久| 99在线精品一区二区三区| 国产精品69久久久久水密桃| 裸体在线国模精品偷拍| 日本视频免费一区| 性做久久久久久久免费看| 亚洲在线观看免费| 亚洲精品乱码久久久久久| 中文字幕一区三区| 国产精品电影一区二区| 国产精品成人免费在线| 国产精品久久久久7777按摩| 国产精品国产三级国产普通话99 | 9191精品国产综合久久久久久| 欧美中文字幕久久| 欧美视频日韩视频| 欧美久久久一区| 4438x成人网最大色成网站| 欧美精品日韩一区| 日韩片之四级片| 久久这里只有精品视频网| www激情久久| 国产亚洲精品aa午夜观看| 国产精品视频在线看| 中文字幕一区二区三区不卡在线| 日韩毛片视频在线看| 一区二区三区四区在线播放| 亚洲国产日日夜夜| 日产欧产美韩系列久久99| 久久国产成人午夜av影院| 国产美女在线精品| 97精品国产97久久久久久久久久久久 | 久久精品网站免费观看| 国产午夜亚洲精品不卡| 五月天婷婷综合| 精品亚洲成av人在线观看| 国产成人自拍网| 91网站最新网址| 欧美电影一区二区| 久久精品亚洲精品国产欧美kt∨ | 亚洲欧洲精品一区二区三区| 亚洲精品国产无天堂网2021| 午夜视黄欧洲亚洲| 精一区二区三区| 99re成人精品视频| 欧美一级夜夜爽| 久久亚洲一区二区三区明星换脸 | 国产精品国产自产拍高清av王其| 一区二区三区在线视频观看58| 日韩成人精品视频| 国产91精品一区二区麻豆网站| 在线观看亚洲一区| 久久精品亚洲一区二区三区浴池 | 精品国产在天天线2019| 亚洲日穴在线视频| 精品一区精品二区高清| 一本久久精品一区二区| 精品国产一二三区| 亚洲宅男天堂在线观看无病毒| 久久99国产精品麻豆| 在线欧美日韩精品| 国产午夜精品一区二区三区嫩草| 夜夜嗨av一区二区三区四季av| 九色|91porny| 欧美三级电影在线看| 国产嫩草影院久久久久| 日产国产欧美视频一区精品| 99久久精品免费| 精品国产电影一区二区| 亚洲一区二区精品3399| 成人黄色a**站在线观看| 日韩午夜精品电影| 亚洲综合网站在线观看| 成人性生交大片免费看中文网站| 538在线一区二区精品国产| 亚洲欧美色图小说| 国产成人精品一区二| 日韩欧美在线一区二区三区| 亚洲自拍偷拍av| av影院午夜一区| 国产欧美一区二区精品久导航 | 老司机一区二区| 欧美日韩久久久| 亚洲精选免费视频| 国产aⅴ综合色| 久久久综合九色合综国产精品| 日日摸夜夜添夜夜添国产精品 | 精品国产污污免费网站入口| 日韩主播视频在线| 欧美日韩中文精品| 亚洲女女做受ⅹxx高潮| 99久久伊人久久99| 欧美高清在线一区二区| 国产一区二区免费看| 久久五月婷婷丁香社区| 久久国产麻豆精品| 日韩欧美国产一二三区| 免费亚洲电影在线| 日韩欧美资源站| 久久精品国产成人一区二区三区| 欧美日韩aaa| 午夜电影网亚洲视频| 在线不卡一区二区| 免费成人结看片| 日韩欧美一二区| 激情小说欧美图片| 久久影院电视剧免费观看| 国产精品一区在线观看乱码| 久久久美女毛片 | 成人av在线一区二区三区| 国产欧美日韩另类视频免费观看| 国产剧情一区在线| 中文在线一区二区| 制服丝袜亚洲网站| 蜜臀av亚洲一区中文字幕| 欧美成人精品3d动漫h| 国产一区二区免费在线| 日本一区二区综合亚洲| 91啪在线观看| 亚洲电影你懂得| 欧美一区二区在线视频| 韩国女主播一区二区三区| 欧美激情在线一区二区三区| 99在线热播精品免费| 亚洲一区二区视频| 日韩一级免费一区| 国产成人综合在线观看| 亚洲啪啪综合av一区二区三区| 欧美丝袜丝交足nylons图片| 美国精品在线观看| 国产欧美日韩在线看| 欧美色图片你懂的|