Hi folks,
I am a bit new to GUI programming and have a question about structuring code execution when involving a custom GUI figure. What I have is roughly the following
<b>Top level file</b>
T1: execute some initial code (inits global variables, reads in data from some files, some initial code..)
T2: execute <b>GUI script</b> using the "exec"
T3: remainder of main code
<b>GUI script</b>
G1: function handlers for the GUI buttons below
G2: creates a simple GUI with "uicontrols" that includes custom buttons.
Buttons call the handlers of step G1 when pressed to set a global variable
When I execute the top level file, the whole thing executes sequentially:
T1->T2->G2->T3
and user has no opportunity to make a selection.
What I want to do is have it execute steps:
T1 -> T2 -> G2 but *hold* execution of step T3 until user pressed the buttons in the GUI and G1 is finished executing
I tried stragetically inserting the "pause" after G2 but inserting resume in each of the functions in G1, but what that does is just prevent the button handlers of G1 to execute altogether. Anyone has a good suggestion on how to deal with this?
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Pausing-script-execution-for-custom-GUI-tp4030761.html">Pausing script execution for custom GUI</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>