Changeset 987


Ignore:
Timestamp:
Apr 2, 2008, 2:34:22 PM (17 years ago)
Author:
gah
Message:

augmented example with abort button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer/examples/simple.tcl

    r903 r987  
    6161pack .value -side left -expand yes -fill both
    6262
     63proc SetAbortFlag {} {
     64    global doAbort
     65    set doAbort 1
     66}
     67set doAbort 0
     68button .quit -text Quit -command SetAbortFlag
     69pack .quit
    6370set colors {magenta purple blue DeepSkyBlue cyan green yellow Gold orange tomato red FireBrick black}
    6471
     
    8491    fvec$pop append [$xmlobj get output.number(f).current]
    8592    incr jobnumber
     93    global doAbort
     94    if { $doAbort } {
     95        optim abort yes
     96    }
    8697}
    8798
Note: See TracChangeset for help on using the changeset viewer.