Current Path: > > usr > > lib64 > > tcl8.6 > Tix8.4.3
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
bitmaps | Directory | - | - | |
html | Directory | - | - | |
pref | Directory | - | - | |
Balloon.tcl | File | 13285 bytes | October 22 2019 12:47:10. | |
BtnBox.tcl | File | 2671 bytes | October 22 2019 12:47:10. | |
CObjView.tcl | File | 7738 bytes | October 22 2019 12:47:10. | |
ChkList.tcl | File | 5087 bytes | October 22 2019 12:47:10. | |
ComboBox.tcl | File | 36271 bytes | October 22 2019 12:47:10. | |
Compat.tcl | File | 870 bytes | October 22 2019 12:47:10. | |
Console.tcl | File | 15311 bytes | October 22 2019 12:47:10. | |
Control.tcl | File | 12402 bytes | October 22 2019 12:47:10. | |
DefSchm.tcl | File | 3013 bytes | October 22 2019 12:47:10. | |
DialogS.tcl | File | 4296 bytes | October 22 2019 12:47:10. | |
DirBox.tcl | File | 5425 bytes | October 22 2019 12:47:10. | |
DirDlg.tcl | File | 2206 bytes | October 22 2019 12:47:10. | |
DirList.tcl | File | 7064 bytes | October 22 2019 12:47:10. | |
DirTree.tcl | File | 8972 bytes | October 22 2019 12:47:10. | |
DragDrop.tcl | File | 4025 bytes | October 22 2019 12:47:10. | |
DtlList.tcl | File | 1002 bytes | October 22 2019 12:47:10. | |
EFileBox.tcl | File | 11390 bytes | October 22 2019 12:47:10. | |
EFileDlg.tcl | File | 1718 bytes | October 22 2019 12:47:10. | |
Event.tcl | File | 5231 bytes | October 22 2019 12:47:10. | |
FileBox.tcl | File | 14336 bytes | October 22 2019 12:47:10. | |
FileCbx.tcl | File | 2483 bytes | October 22 2019 12:47:10. | |
FileDlg.tcl | File | 2185 bytes | October 22 2019 12:47:10. | |
FileEnt.tcl | File | 7319 bytes | October 22 2019 12:47:10. | |
FloatEnt.tcl | File | 3176 bytes | October 22 2019 12:47:10. | |
Grid.tcl | File | 21665 bytes | October 22 2019 12:47:10. | |
HList.tcl | File | 18148 bytes | October 22 2019 12:47:10. | |
HListDD.tcl | File | 4500 bytes | October 22 2019 12:47:10. | |
IconView.tcl | File | 6110 bytes | October 22 2019 12:47:10. | |
Init.tcl | File | 6199 bytes | October 22 2019 12:47:10. | |
LabEntry.tcl | File | 2143 bytes | October 22 2019 12:47:10. | |
LabFrame.tcl | File | 1181 bytes | October 22 2019 12:47:10. | |
LabWidg.tcl | File | 3951 bytes | October 22 2019 12:47:10. | |
ListNBk.tcl | File | 3581 bytes | October 22 2019 12:47:10. | |
Meter.tcl | File | 3114 bytes | October 22 2019 12:47:10. | |
MultView.tcl | File | 3704 bytes | October 22 2019 12:47:10. | |
NoteBook.tcl | File | 6160 bytes | October 22 2019 12:47:10. | |
OldUtil.tcl | File | 3056 bytes | October 22 2019 12:47:10. | |
OptMenu.tcl | File | 9392 bytes | October 22 2019 12:47:10. | |
PanedWin.tcl | File | 28347 bytes | October 22 2019 12:47:10. | |
PopMenu.tcl | File | 5500 bytes | October 22 2019 12:47:10. | |
Primitiv.tcl | File | 10527 bytes | October 22 2019 12:47:10. | |
README.txt | File | 987 bytes | October 22 2019 12:47:10. | |
ResizeH.tcl | File | 13247 bytes | October 22 2019 12:47:10. | |
SGrid.tcl | File | 5935 bytes | October 22 2019 12:47:10. | |
SHList.tcl | File | 3793 bytes | October 22 2019 12:47:10. | |
SListBox.tcl | File | 7138 bytes | October 22 2019 12:47:10. | |
STList.tcl | File | 2428 bytes | October 22 2019 12:47:10. | |
SText.tcl | File | 3163 bytes | October 22 2019 12:47:10. | |
SWidget.tcl | File | 9748 bytes | October 22 2019 12:47:10. | |
SWindow.tcl | File | 6908 bytes | October 22 2019 12:47:10. | |
Select.tcl | File | 7204 bytes | October 22 2019 12:47:10. | |
Shell.tcl | File | 1082 bytes | October 22 2019 12:47:10. | |
SimpDlg.tcl | File | 1157 bytes | October 22 2019 12:47:10. | |
StackWin.tcl | File | 1992 bytes | October 22 2019 12:47:10. | |
StatBar.tcl | File | 1339 bytes | October 22 2019 12:47:10. | |
StdBBox.tcl | File | 1656 bytes | October 22 2019 12:47:10. | |
StdShell.tcl | File | 1173 bytes | October 22 2019 12:47:10. | |
TList.tcl | File | 18009 bytes | October 22 2019 12:47:10. | |
Tix.tcl | File | 9737 bytes | October 22 2019 12:47:10. | |
Tree.tcl | File | 4679 bytes | October 22 2019 12:47:10. | |
Utils.tcl | File | 10788 bytes | October 22 2019 12:47:10. | |
VResize.tcl | File | 5069 bytes | October 22 2019 12:47:10. | |
VStack.tcl | File | 9651 bytes | October 22 2019 12:47:10. | |
VTree.tcl | File | 4410 bytes | October 22 2019 12:47:10. | |
Variable.tcl | File | 2563 bytes | October 22 2019 12:47:10. | |
WInfo.tcl | File | 965 bytes | October 22 2019 12:47:10. | |
fs.tcl | File | 3995 bytes | October 22 2019 12:47:10. | |
libTix.so | File | 349488 bytes | October 22 2019 12:47:11. | |
license.terms | File | 2828 bytes | October 22 2019 12:47:10. | |
pkgIndex.tcl | File | 122 bytes | October 22 2019 12:47:10. |
# -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # # $Id: Tix.tcl,v 1.14 2008/03/17 23:01:10 hobbs Exp $ # # Tix.tcl -- # # This file implements the Tix application context class # # Copyright (c) 1993-1999 Ioi Kim Lam. # Copyright (c) 2000-2001 Tix Project Group. # Copyright (c) 2004 ActiveState # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # tixClass tixAppContext { -superclass {} -classname TixAppContext -method { cget configure addbitmapdir filedialog getbitmap getimage option platform resetoptions setbitmap initstyle } -flag { -binding -debug -extracmdargs -filedialog -fontset -grabmode -haspixmap -libdir -scheme -schemepriority -percentsubst } -readonly { -haspixmap } -configspec { {-binding TK} {-debug 0} {-extracmdargs 1} {-filedialog ""} {-fontset WmDefault} {-grabmode global} {-haspixmap 0} {-libdir ""} {-percentsubst 0} {-scheme WmDefault} {-schemepriority 21} } -alias { } } proc tixAppContext:Constructor {w} { upvar #0 $w data global tix_priv tix_library tixOption if {[info exists data(initialized)]} { error "tixAppContext has already be initialized" } else { set data(initialized) 1 } set data(et) [string equal $tix_library ""] set data(image) 0 # These options were set when Tix was loaded # set data(-binding) $tix_priv(-binding) set data(-debug) $tix_priv(-debug) set data(-fontset) $tix_priv(-fontset) set data(-scheme) $tix_priv(-scheme) set data(-schemepriority) $tix_priv(-schemepriority) if {![info exists tix_priv(isSafe)]} { set data(-libdir) [file normalize $tix_library] } set tixOption(prioLevel) $tix_priv(-schemepriority) # Compatibility stuff: the obsolete name courier_font has been changed to # fixed_font set tixOption(fixed_font) Courier set tixOption(courier_font) $tixOption(fixed_font) # Enable/Disable Intrinsics debugging # set tix_priv(debug) [string is true -strict $data(-debug)] tixAppContext:BitmapInit $w tixAppContext:FileDialogInit $w # Clean up any error message generated by the above loop set ::errorInfo "" } proc tixAppContext:initstyle {w} { # Do the init stuff here that affects styles upvar #0 $w data global tix_priv if {![info exists tix_priv(isSafe)]} { tixAppContext:config-fontset $w $data(-fontset) tixAppContext:config-scheme $w $data(-scheme) } tixAppContext:BitmapInit $w tixAppContext:FileDialogInit $w # Force the "." window to accept the new Tix options # set noconfig [list -class -colormap -container -menu -screen -use -visual] set noconfig [lsort $noconfig] foreach spec [. configure] { set flag [lindex $spec 0] if {[llength $spec] != 5 || [lsearch -exact -sorted $noconfig $flag] != -1} { continue } set name [lindex $spec 1] set class [lindex $spec 2] set value [option get . $name $class] catch {. configure $flag $value} } } #---------------------------------------------------------------------- # Configurations # #---------------------------------------------------------------------- proc tixAppContext:resetoptions {w scheme fontset {schemePrio ""}} { upvar #0 $w data if {! $data(et)} { global tixOption option clear if {$schemePrio != ""} { set tixOption(prioLevel) $schemePrio } tixAppContext:config-scheme $w $scheme tixAppContext:config-fontset $w $fontset } } proc tixAppContext:StartupError {args} { bgerror [join $args "\n"] } proc tixAppContext:config-fontset {w value} { upvar #0 $w data global tix_priv tixOption set data(-fontset) $value #----------------------------------- # Initialization of options database #----------------------------------- # Load the fontset # if {!$data(et)} { set prefDir [file join $data(-libdir) pref] set fontSetFile [file join $prefDir $data(-fontset).fsc] if {[file exists $fontSetFile]} { source $fontSetFile tixPref:InitFontSet:$data(-fontset) tixPref:SetFontSet:$data(-fontset) } else { tixAppContext:StartupError \ " Error: cannot use fontset \"$data(-fontset)\"" \ " Using default fontset " tixSetDefaultFontset } } else { if [catch { tixPref:InitFontSet:$data(-fontset) tixPref:SetFontSet:$data(-fontset) }] { # User chose non-existent fontset # tixAppContext:StartupError \ " Error: cannot use fontset \"$data(-fontset)\"" \ " Using default fontset " tixSetDefaultFontset } } } proc tixAppContext:config-scheme {w value} { upvar #0 $w data global tix_priv set data(-scheme) $value # Load the color scheme # if {!$data(et)} { set schemeName [file join [file join $data(-libdir) pref] \ $data(-scheme).csc] if {[file exists $schemeName]} { source $schemeName tixPref:SetScheme-Color:$data(-scheme) } else { tixAppContext:StartupError \ " Error: cannot use color scheme \"$data(-scheme)\"" \ " Using default color scheme" tixSetDefaultScheme-Color } } else { if [catch {tixPref:SetScheme-Color:$data(-scheme)}] { # User chose non-existent color scheme # tixAppContext:StartupError \ " Error: cannot use color scheme \"$data(-scheme)\"" \ " Using default color scheme" tixSetDefaultScheme-Color } } } #---------------------------------------------------------------------- # Private methods # #---------------------------------------------------------------------- proc tixAppContext:BitmapInit {w} { upvar #0 $w data # See whether we have pixmap extension # set data(-haspixmap) true # Dynamically set the bitmap directory # if {! $data(et)} { set data(bitmapdirs) [list [file join $data(-libdir) bitmaps]] } else { set data(bitmapdirs) "" } } proc tixAppContext:FileDialogInit {w} { upvar #0 $w data if {$data(-filedialog) == ""} { set data(-filedialog) [option get . fileDialog FileDialog] } if {$data(-filedialog) == ""} { set data(-filedialog) tixFileSelectDialog } } #---------------------------------------------------------------------- # Public methods #---------------------------------------------------------------------- proc tixAppContext:addbitmapdir {w bmpdir} { upvar #0 $w data if {[lsearch $data(bitmapdirs) $bmpdir] == -1} { lappend data(bitmapdirs) $bmpdir } } proc tixAppContext:getimage {w name} { upvar #0 $w data global tix_priv if {[info exists data(img:$name)]} { return $data(img:$name) } if {![info exists tix_priv(isSafe)]} { foreach dir $data(bitmapdirs) { foreach {ext type} { .xpm pixmap .gif photo .ppm photo .xbm bitmap "" bitmap } { set file [file join $dir $name$ext] if {[file exists $file] && ![catch { set img tiximage$data(image) set data(img:$name) \ [image create $type $img -file $file] }]} { incr data(image) break } } if {[info exists data(img:$name)]} { return $data(img:$name) } } } if {![info exists data(img:$name)]} { catch { set img tiximage$data(image) # This is for compiled-in images set data(img:$name) [image create pixmap $img -id $name] } err if {[string match internal* $err]} { error $err } else { incr data(image) } } if {[info exists data(img:$name)]} { return $data(img:$name) } else { error "image file \"$name\" cannot be found" } } proc tixAppContext:getbitmap {w bitmapname} { upvar #0 $w data global tix_priv if {[info exists data(bmp:$bitmapname)]} { return $data(bmp:$bitmapname) } else { set ext [file extension $bitmapname] if {$ext == ""} { set ext .xbm } # This is the fallback value. If we can't find the bitmap in # the bitmap directories, then use the name of the bitmap # as the default value. # set data(bmp:$bitmapname) $bitmapname if {[info exists tix_priv(isSafe)]} { return $data(bmp:$bitmapname) } foreach dir $data(bitmapdirs) { if {$ext eq ".xbm" && [file exists [file join $dir $bitmapname.xbm]]} { set data(bmp:$bitmapname) \ @[file join $dir $bitmapname.xbm] break } if {[file exists [file join $dir $bitmapname]]} { set data(bmp:$bitmapname) @[file join $dir $bitmapname] break } } return $data(bmp:$bitmapname) } } proc tixAppContext:filedialog {w {type tixFileSelectDialog}} { upvar #0 $w data if {$type == ""} { set type $data(-filedialog) } if {![info exists data(filedialog,$type)]} { set data(filedialog,$type) "" } if {$data(filedialog,$type) == "" || \ ![winfo exists $data(filedialog,$type)]} { set data(filedialog,$type) [$type .tixapp_filedialog_$type] } return $data(filedialog,$type) } proc tixAppContext:option {w action {option ""} {value ""}} { global tixOption if {$action eq "get"} { if {$option == ""} {return [lsort [array names tixOption]]} return $tixOption($option) } } proc tixAppContext:platform {w} { return $::tcl_platform(platform) } proc tixDebug {message {level "1"}} { set debug [tix cget -debug] if {![string is true -strict $debug]} { return } if {$debug > 0} { # use $level here if {[catch {fconfigure stderr}]} { # This will happen under PYTHONW.EXE or frozen Windows apps proc tixDebug args {} } else { puts stderr $message } } } if {![llength [info commands toplevel]]} { interp alias {} toplevel {} frame }
SILENT KILLER Tool