Changeset 1681 for branches/blt4/gui/scripts/filechoiceentry.tcl
- Timestamp:
- Apr 1, 2010, 10:58:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/filechoiceentry.tcl
r1677 r1681 185 185 # ---------------------------------------------------------------------- 186 186 itcl::body Rappture::FileChoiceEntry::_rebuild {} { 187 puts stderr "filechoiceentry rebuild"188 187 set _rebuildPending 0 189 188 # get rid of any existing choices … … 199 198 set glob [string trim [$_owner xml get $_path.$cname]] 200 199 # Successively replace each template with its value. 201 puts stderr "before glob=$glob"202 200 while { [regexp -indices {@@[^@]*@@} $glob range] } { 203 201 foreach {first last} $range break … … 206 204 set cpath [string range $glob $i1 $i2] 207 205 set value [$_owner xml get $cpath.current] 208 puts stderr "$cpath.current: value=$value"209 206 if { $value == "" } { 210 puts stderr "$_owner xml get $cpath.default"211 207 set value [$_owner xml get $cpath.default] 212 puts stderr "$cpath.default: value=$value"213 208 } 214 209 set glob [string replace $glob $first $last $value] … … 252 247 itcl::body Rappture::FileChoiceEntry::_tooltip {} { 253 248 set tip [string trim [$_owner xml get $_path.about.description]] 254 puts stderr "tip=$tip, $_owner=$_owner path=$_path.about.description"255 249 # get the description for the current choice, if there is one 256 250 set str [$itk_component(choice) value]
Note: See TracChangeset
for help on using the changeset viewer.