Re: widget updating issue



In article <5af8f$452d2b0e$404a99a1$3190@xxxxxxxxxxxxxxxxxxxxx>,
Robert Heller <heller@xxxxxxxxxxxx> wrote:
At 11 Oct 2006 09:08:35 -0700 "cmurphy" <murphycc@xxxxxxxxx> wrote:
.
.
.
No, you don't need to use the VWAIT command. Instead, you need to just
enter the event loop each time through the rsh loop:

foreach host {host1 host2 host3 ...} {
# Execute the remote command
catch {exec rsh $host command} commandresult
# Update screen elements (eg. labels)
$label($host) configure -text "$commandresult"
# Enter the event loop to handle pending screen update events.
update idle
}
.
.
.
And where it gets *really* exciting is that you can, with
a little help, launch all eight rsh-s *simultaneously*,
and have the results "light up" as they arrive, in whatever
order they finish.
.



Relevant Pages

  • Re: widget updating issue
    ... The best way to solve this is to restructure your application to work with the event loop, rather than re-entering the event loop periodically with. ... to read output from each command while still keeping the event loop running. ... puts "Received: $line from $server" ...
    (comp.lang.tcl)
  • Re: GUI Program Error
    ... this also relies on Python being able to keep the Tkinter event loop going behind the scenes; different command-line implementations have different limitations. ... for example, on Windows, the event loop runs only when you're at an empty Python prompt; as soon as you start typing the next command, the interpreter switches over to "text input mode", and the event loop is paused until you press return. ... Idle now stays more separate from the process running the ...
    (comp.lang.python)
  • Re: widget updating issue
    ... You can force an update using the command (or [update ... Tk delays updates until the event loop is ... puts "Received: $line from $server" ...
    (comp.lang.tcl)
  • Re: flashing widgets in tcl/tk8.3 - need help.
    ... >> after 300 flashButton ... I assume the after command returns ... pauses half a second before executing the next line of code ... Processing after, just like fileevents, requires the event loop. ...
    (comp.lang.tcl)