Ignore:
Timestamp:
Mar 4, 2016, 8:21:03 AM (9 years ago)
Author:
gah
Message:

fix help menu with phases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/gui/scripts/analyzer.tcl

    r6029 r6103  
    6868    public method clear {{xmlobj "all"}}
    6969    public method download {option args}
     70    public method buildMenu { w url appName }
    7071
    7172    protected method _plot {args}
     
    104105    private variable _wait_uq 0
    105106
    106     private method BuildMenu { url }
    107107    private method BuildSimulationTable { w }
    108108    private method Cancel {}
     
    201201    }
    202202    pack $itk_component(help) -side left
    203     BuildMenu $url
     203    buildMenu $itk_component(help).menu $url $_appName
    204204   
    205205    if 0 {
     
    15591559# Build Help menu
    15601560#
    1561 itcl::body Rappture::Analyzer::BuildMenu { url } {
    1562     set m $itk_component(help).menu
    1563     itk_component add helpmenu {
    1564         menu $itk_component(help).menu \
    1565             -tearoff 0 \
    1566             -postcommand [itcl::code $this PostMenu]
    1567     } {
    1568         ignore -tearoff
    1569     }
    1570     if { $_appName == "" || $url == "" } {
     1561itcl::body Rappture::Analyzer::buildMenu { m url appName } {
     1562    menu $m \
     1563        -tearoff 0 \
     1564        -postcommand [itcl::code $this PostMenu]
     1565    if { $appName == "" || $url == "" } {
    15711566        set state disabled
    15721567    } else {
     
    15741569    }
    15751570    $m add command -label "About this tool" \
    1576         -command [list Rappture::filexfer::webpage "$url/tools/$_appName"] \
     1571        -command [list Rappture::filexfer::webpage "$url/tools/$appName"] \
    15771572        -state $state
    15781573    $m add command -label "Questions?" \
Note: See TracChangeset for help on using the changeset viewer.