Ignore:
Timestamp:
Jan 7, 2009 9:26:11 PM (16 years ago)
Author:
dkearney
Message:

fix for race condition involving loader widgets that do not always finish setting themselves up before user has the opportunity to start the simulation by pressing the simulate button. if the loader is not properly setup, the driver file that is sent to the science code may be incomplete. the solution implemented is to use the update command to run the event loop until after a widget has been inserted in controls.tcl. perhaps the proper fix is to disable the simulate button. disabling the simulate button ended up being tricky due because if the application is in wizard mode, the user can click the page header to simulate or push the "Next" button to flip to the simulate page, where the simulation is started. i could not quickly figure out how to guard against the multiple ways of starting the simulation.

File:
1 edited

Legend:

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

    r1216 r1267  
    270270    $_dispatcher event -idle !layout
    271271    _controlChanged $name
     272
     273    # let the waiting events in the gui (like loader) settle
     274    update
    272275
    273276    return $name
Note: See TracChangeset for help on using the changeset viewer.