[Scilab-users] Pausing script execution for custom GUI

digitalchkn digitalchkn at yahoo.com
Tue Jun 24 03:18:29 CEST 2014


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*Top level file*   T1: execute some initial code
(inits global variables, reads in data from some files, some initial code..)  
T2: execute *GUI script* using the "exec"    T3: remainder of main code *GUI
script*  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 variableWhen I
execute the top level file, the whole thing executes
sequentially:T1->T2->G2->T3and 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 executingI 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?



--
View this message in context: http://mailinglists.scilab.org/Pausing-script-execution-for-custom-GUI-tp4030761.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140623/28219caf/attachment.htm>


More information about the users mailing list