Changeset 3646 for branches/1.2/gui/scripts/choiceentry.tcl
- Timestamp:
- May 14, 2013 2:33:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/gui/scripts/choiceentry.tcl
r3513 r3646 136 136 # ---------------------------------------------------------------------- 137 137 itcl::body Rappture::ChoiceEntry::label {} { 138 set label [ $_owner xml get $_path.about.label]138 set label [string trim [$_owner xml get $_path.about.label]] 139 139 if {"" == $label} { 140 140 set label "Choice" … … 193 193 $_owner notify add $this $cntl [itcl::code $this _rebuild] 194 194 195 set label [$_owner xml get $_path.$cname.about.label] 195 set label \ 196 [string trim [$_owner xml get $_path.$cname.about.label]] 196 197 if {"" == $label} { 197 198 set label "%type #%n" … … 208 209 set subst(%id) [$_owner xml element -as id $leading.$ccname] 209 210 foreach detail [$_owner xml children $leading.$ccname] { 210 set subst(%$detail) [$_owner xml get $leading.$ccname.$detail] 211 set subst(%$detail) \ 212 [$_owner xml get $leading.$ccname.$detail] 211 213 } 212 214 set str [string map [array get subst] $label] … … 226 228 # 227 229 set val [string trim [$_owner xml get $_path.$cname.value]] 228 set str [ $_owner xml get $_path.$cname.about.label]230 set str [string trim [$_owner xml get $_path.$cname.about.label]] 229 231 if {"" == $val} { 230 232 set val $str … … 276 278 # ---------------------------------------------------------------------- 277 279 itcl::body Rappture::ChoiceEntry::_tooltip {} { 278 set tip [ $_owner xml get $_path.about.description]280 set tip [string trim [$_owner xml get $_path.about.description]] 279 281 280 282 # get the description for the current choice, if there is one … … 283 285 set desc "" 284 286 if {$path != ""} { 285 set desc [ $_owner xml get $path.about.description]287 set desc [string trim [$_owner xml get $path.about.description]] 286 288 } 287 289
Note: See TracChangeset
for help on using the changeset viewer.