Changeset 193 for trunk/gui/scripts/valueresult.tcl
- Timestamp:
- Feb 19, 2006, 8:10:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/valueresult.tcl
r115 r193 28 28 public method delete {args} 29 29 public method scale {args} 30 public method download { }30 public method download {option} 31 31 32 32 set _dataobj "" ;# data object currently being displayed … … 147 147 148 148 # ---------------------------------------------------------------------- 149 # USAGE: download 149 # USAGE: download coming 150 # USAGE: download now 150 151 # 151 152 # Clients use this method to create a downloadable representation … … 154 155 # "string" is the data itself. 155 156 # ---------------------------------------------------------------------- 156 itcl::body Rappture::ValueResult::download {} { 157 return "" 157 itcl::body Rappture::ValueResult::download {option} { 158 switch $option { 159 coming { 160 # nothing to do 161 } 162 now { 163 set lstr [$itk_component(label) cget -text] 164 set vstr [$itk_component(value) cget -text] 165 return [list .txt "$lstr: $vstr"] 166 } 167 default { 168 error "bad option \"$option\": should be coming, now" 169 } 170 } 158 171 }
Note: See TracChangeset
for help on using the changeset viewer.