Changeset 43 for trunk/gui/scripts/analyzer.tcl
- Timestamp:
- Aug 16, 2005, 1:12:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r23 r43 311 311 set status [catch {load $file} msg] 312 312 if {$status != 0} { 313 set result $msg 313 global errorInfo 314 set result "$msg\n$errorInfo" 314 315 } 315 316 } else { … … 329 330 $itk_component(runinfo) delete 1.0 end 330 331 $itk_component(runinfo) insert end "Problem launching job:\n\n" 331 $itk_component(runinfo) insert end$result332 _simOutput $result 332 333 $itk_component(runinfo) configure -state disabled 334 $itk_component(runinfo) see 1.0 333 335 } else { 334 336 $itk_component(notebook) current analyze … … 370 372 # ---------------------------------------------------------------------- 371 373 itcl::body Rappture::Analyzer::load {file} { 374 # only show the last result? then clear first 375 if {[$_tool xml get tool.analyzer] == "last"} { 376 clear 377 } 378 372 379 # try to load new results from the given file 373 380 set xmlobj [Rappture::library $file] … … 509 516 set page [$itk_component(resultselector) value] 510 517 set page [$itk_component(resultselector) translate $page] 511 set f [$itk_component(resultpages) page $page] 512 $f.rviewer plot clear 513 foreach {index opts} $_plotlist { 514 $f.rviewer plot add $index $opts 518 if {"" != $page} { 519 set f [$itk_component(resultpages) page $page] 520 $f.rviewer plot clear 521 foreach {index opts} $_plotlist { 522 $f.rviewer plot add $index $opts 523 } 515 524 } 516 525 }
Note: See TracChangeset
for help on using the changeset viewer.