Changeset 193 for trunk/gui/scripts/textresult.tcl
- Timestamp:
- Feb 19, 2006 8:10:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/textresult.tcl
r115 r193 31 31 public method delete {args} 32 32 public method scale {args} 33 public method download { }33 public method download {option} 34 34 35 35 public method select {option args} … … 247 247 248 248 # ---------------------------------------------------------------------- 249 # USAGE: download 249 # USAGE: download coming 250 # USAGE: download now 250 251 # 251 252 # Clients use this method to create a downloadable representation … … 254 255 # "string" is the data itself. 255 256 # ---------------------------------------------------------------------- 256 itcl::body Rappture::TextResult::download {} { 257 return [list .txt [$itk_component(text) get 1.0 end]] 257 itcl::body Rappture::TextResult::download {option} { 258 switch $option { 259 coming { 260 # nothing to do 261 } 262 now { 263 return [list .txt [$itk_component(text) get 1.0 end]] 264 } 265 default { 266 error "bad option \"$option\": should be coming, now" 267 } 268 } 258 269 } 259 270
Note: See TracChangeset
for help on using the changeset viewer.