Changeset 170 for trunk


Ignore:
Timestamp:
Feb 10, 2006 8:27:40 PM (18 years ago)
Author:
mmc
Message:
  • Fixed the ResultSet? widget so that results with spaces in the name work properly when picking a combination that doesn't exist and skipping ahead to one that does.
  • Fixed the font in the runinfo area to use a fixed width font for simulator output, so ASCII art shows up properly.
Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r168 r170  
    2727option add *Analyzer.font \
    2828    -*-helvetica-medium-r-normal-*-*-120-* widgetDefault
     29option add *Analyzer.codeFont \
     30    -*-courier-medium-r-normal-*-*-120-* widgetDefault
    2931option add *Analyzer.textFont \
    3032    -*-helvetica-medium-r-normal-*-*-120-* widgetDefault
     
    3537    inherit itk::Widget
    3638
     39    itk_option define -codefont codeFont Font ""
    3740    itk_option define -textfont textFont Font ""
    3841    itk_option define -boldtextfont boldTextFont Font ""
     
    165168        usual
    166169        ignore -borderwidth -relief
    167         rename -font -textfont textFont Font
     170        rename -font -codefont codeFont Font
    168171    }
    169172    $w.info contents $w.info.text
    170 
    171     $itk_component(runinfo) tag configure ERROR -foreground red
    172173
    173174    itk_component add progress {
     
    225226
    226227    eval itk_initialize $args
     228
     229    $itk_component(runinfo) tag configure ERROR -foreground red
     230    $itk_component(runinfo) tag configure text -font $itk_option(-textfont)
    227231
    228232    #
     
    300304    $itk_component(runinfo) configure -state normal
    301305    $itk_component(runinfo) delete 1.0 end
    302     $itk_component(runinfo) insert end "Running simulation...\n\n"
     306    $itk_component(runinfo) insert end "Running simulation...\n\n" text
    303307    $itk_component(runinfo) configure -state disabled
    304308
     
    341345        $itk_component(runinfo) configure -state normal
    342346        $itk_component(runinfo) delete 1.0 end
    343         $itk_component(runinfo) insert end "Problem launching job:\n\n"
     347        $itk_component(runinfo) insert end "Problem launching job:\n\n" text
    344348        _simOutput $result
    345349        $itk_component(runinfo) configure -state disabled
  • trunk/gui/scripts/resultset.tcl

    r115 r170  
    591591            for {set i 0} {$i < $nsearch} {incr i} {
    592592                set format $eventdata(column)
    593                 set tuple [$eventdata(widget) get current]
     593                set tuple [list [$eventdata(widget) get current]]
    594594                for {set j [expr {$i+1}]} {$j < $nsearch} {incr j} {
    595595                    set col [lindex $search $j]
     
    603603                    set tweak(widget) $_col2widget($col)
    604604                    set first [lindex $ilist 0]
    605                     set tweak(value) [$_results get -format $col -- $first]
     605                    set tweak(value) [lindex [$_results get -format $col -- $first] 0]
    606606                    break
    607607                }
Note: See TracChangeset for help on using the changeset viewer.