Ignore:
Timestamp:
Apr 19, 2005, 8:06:13 PM (19 years ago)
Author:
mmc
Message:

Massive changes across the entire toolkit. Rearranged the
XML description to agree better with new documentation and
conventions.

Added a small start of Rappture.interface and Rappture.number
in the python directory. This is the new way of doing Rappture--
by declaring variables directly in the program, not using XML
directly at all.

File:
1 edited

Legend:

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

    r8 r9  
    151151            puts $fid "<?xml version=\"1.0\"?>"
    152152            set xml [$itk_option(-tool) xml]
    153             set xml2 [$itk_option(-device) xml]
    154             regsub -all {&} $xml2 {\\\&} xml2
    155             regsub {</run>} $xml "$xml2</run>" xml
     153            if {$itk_option(-device) != ""} {
     154                set xml2 [$itk_option(-device) xml]
     155                regsub -all {&} $xml2 {\\\&} xml2
     156                regsub {</run>} $xml "$xml2</run>" xml
     157            }
    156158            puts $fid $xml
    157159            close $fid
     
    265267    $itk_component(info) configure -state normal
    266268    $itk_component(info) delete 1.0 end
    267     $itk_component(info) insert end [$itk_option(-tool) get executable.about]
     269    $itk_component(info) insert end [$itk_option(-tool) get tool.about]
    268270    $itk_component(info) configure -state disabled
    269271}
Note: See TracChangeset for help on using the changeset viewer.