Ignore:
Timestamp:
Aug 16, 2005, 1:12:56 AM (19 years ago)
Author:
mmc
Message:
  • Added a new Rappture.result() function to the Python library. This makes it easy to finalize results. See examples/graph for example use.
  • Added examples/graph to illustrate a simple tool with a string and two numbers for input.
  • Fixed the XY graph to show crosshairs and pop-up info when you mouse over particular points.
  • Fixed Rappture::exec so that it doesn't add stray newlines when a program has lots (more than 8k) of output.
  • Fixed the analyzer to recognize the <tool><analyzer> tag. When set to "last", this automatically clears the last result. Handy for programs like SPICE, where you don't compare much, but keep running one new simulation after another.
  • Fixed <string> entries to enable the Simulate button after each editing keystroke.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/analyzer.tcl

    r23 r43  
    311311            set status [catch {load $file} msg]
    312312            if {$status != 0} {
    313                 set result $msg
     313                global errorInfo
     314                set result "$msg\n$errorInfo"
    314315            }
    315316        } else {
     
    329330        $itk_component(runinfo) delete 1.0 end
    330331        $itk_component(runinfo) insert end "Problem launching job:\n\n"
    331         $itk_component(runinfo) insert end $result
     332        _simOutput $result
    332333        $itk_component(runinfo) configure -state disabled
     334        $itk_component(runinfo) see 1.0
    333335    } else {
    334336        $itk_component(notebook) current analyze
     
    370372# ----------------------------------------------------------------------
    371373itcl::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
    372379    # try to load new results from the given file
    373380    set xmlobj [Rappture::library $file]
     
    509516    set page [$itk_component(resultselector) value]
    510517    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        }
    515524    }
    516525}
Note: See TracChangeset for help on using the changeset viewer.