Changeset 3513 for trunk/gui/scripts/integerentry.tcl
- Timestamp:
- Mar 16, 2013, 12:28:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/integerentry.tcl
r3330 r3513 60 60 61 61 # if there are min/max values, plug them in. 62 set min [ $_owner xml get $path.min]62 set min [string trim [$_owner xml get $path.min]] 63 63 if {"" != $min} { 64 64 $itk_component(spinner) configure -minvalue $min 65 65 } 66 66 67 set max [ $_owner xml get $path.max]67 set max [string trim [$_owner xml get $path.max]] 68 68 if {"" != $max} { 69 69 $itk_component(spinner) configure -maxvalue $max … … 71 71 72 72 # if there is a color, use it for the min/max spectrum 73 set color [ $_owner xml get $path.about.color]73 set color [string trim [$_owner xml get $path.about.color]] 74 74 if {$color != "" && $min != "" && $max != ""} { 75 75 # For compatibility. If only one color use white for min … … 78 78 } 79 79 $itk_component(spinner) configure \ 80 -spectrum [Rappture::Spectrum :: #auto $color]80 -spectrum [Rappture::Spectrum ::\#auto $color] 81 81 } 82 82 83 83 # if the control has an icon, plug it in 84 set str [ $_owner xml get $path.about.icon]84 set str [string trim [$_owner xml get $path.about.icon]] 85 85 if {$str != ""} { 86 86 $itk_component(spinner) configure -image \ … … 93 93 # Assign the default value to this widget, if there is one. 94 94 # 95 set str [$_owner xml get $path.default] 96 if {"" != $str != ""} { $itk_component(spinner) value $str } 95 set str [string trim [$_owner xml get $path.default]] 96 if {"" != $str != ""} { 97 $itk_component(spinner) value $str 98 } 97 99 } 98 100 … … 158 160 set str [$_owner xml get $_path.about.description] 159 161 160 set min [ $_owner xml get $_path.min]161 set max [ $_owner xml get $_path.max]162 set min [string trim [$_owner xml get $_path.min]] 163 set max [string trim [$_owner xml get $_path.max]] 162 164 163 165 if {$min != "" || $max != ""} {
Note: See TracChangeset
for help on using the changeset viewer.