<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 18/12/2016 16:20, Jens Simon Strom a
      écrit :<br>
    </div>
    <blockquote cite="mid:5856A928.8070306@hslmg.de" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Hi Samuel,<br>
      Without the loop the script finishes and gives no chance to change
      anything. <br>
    </blockquote>
    ?<br>
    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.<br>
    <br>
    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).<br>
    <br>
    You don't need to block the console with a loop to make changes or
    actions on existing graphics.<br>
    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.<br>
    BTW, the loop that you use is infinite: there is no way to escape it
    smoothly, since<br>
    while 1<br>
    is always true. <br>
    <br>
    SG<br>
    <br>
  </body>
</html>