Changeset 3186 for trunk/gui/scripts/numberentry.tcl
- Timestamp:
- Oct 18, 2012 9:03:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/numberentry.tcl
r3177 r3186 72 72 # 73 73 itk_component add gauge { 74 $class $itk_interior.gauge -units $units -presets $presets 74 $class $itk_interior.gauge -units $units -presets $presets -log $path 75 75 } 76 76 pack $itk_component(gauge) -expand yes -fill both … … 78 78 79 79 set min [$_owner xml get $path.min] 80 if { "" != $min} { $itk_component(gauge) configure -minvalue $min }80 if {$min ne ""} { $itk_component(gauge) configure -minvalue $min } 81 81 82 82 set max [$_owner xml get $path.max] 83 if { "" != $max} { $itk_component(gauge) configure -maxvalue $max }84 85 if {$class == "Rappture::Gauge" && "" != $min && "" != $max} {83 if {$max ne ""} { $itk_component(gauge) configure -maxvalue $max } 84 85 if {$class == "Rappture::Gauge" && $min ne "" && $max ne ""} { 86 86 set color [$_owner xml get $path.about.color] 87 87 if {$color == ""} { … … 105 105 # if the control has an icon, plug it in 106 106 set str [$_owner xml get $path.about.icon] 107 if {$str !=""} {107 if {$str ne ""} { 108 108 $itk_component(gauge) configure -image [image create photo -data $str] 109 109 } … … 115 115 # 116 116 set str [$_owner xml get $path.default] 117 if { "" != $str !=""} { $itk_component(gauge) value $str }117 if {$str ne ""} { $itk_component(gauge) value $str } 118 118 } 119 119
Note: See TracChangeset
for help on using the changeset viewer.