[Scilab-users] Using uimenue to change rotation_angles

Samuel Gougeon sgougeon at free.fr
Sun Dec 18 16:36:33 CET 2016


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161218/b0b4afbc/attachment.htm>


More information about the users mailing list