Util::refresh()
Refreshes the motor positions and calls the update function
of the toplevel widget. Here is a typical example:
a loop that executes some commands calls refresh()
to
update the widgets and allow the mainloop()
to
handle pending events. The button Stop
, which
might have been pressed by the user, generates
an event. The corresponding callback function sets the
symbol $Spectra::SYM{ flag_tki_stop}
to notify
any running program that the user requested a stop. The
line last if( $Spectra::SYM{ flag_tki_stop})
senses the flag and terminates the loop, if necessary.
$Spectra::SYM{ flag_tki_stop} = 0; while(1) { ... Util::refresh(); last if( $Spectra::SYM{ flag_tki_stop}); ... }