Le 18/12/2016 16:20, Jens Simon Strom a écrit :
Hi Samuel,
Without the loop the script finishes and gives no chance to change
anything.
?
Have you tried? Since the figure and its menus are still here, you can
still use them, even if the script having generating them is finished.
A callback is an asynchronous independent script that is performed just
when it is called, "at any time" (actually, its instructions are queued
when it is called, and performed ASAP).
You don't need to block the console with a loop to make changes or
actions on existing graphics.
But if you want to make it "modal", that is to say waiting for and
compelling the user to do something, yes, a loop is required.
BTW, the loop that you use is infinite: there is no way to escape it
smoothly, since
while 1
is always true.
SG
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users