pack/sleep asynchronicity?

From: john lewis <zilla_at_kerner.com>
Date: Fri, 23 Dec 1994 16:21:21 -0800

I would like to bring up some widgets, then wait for a bit
(an external process to finish, but a sleep would be equivalent)
before introducing some more into the same frame.

In the example below, none of the packs come into effect until
the end of the script, i.e. the sleep executes out of order.
This is true even if stk is started with -sync.

Any ideas?

----------------

(frame '.main)
(pack '.main :expand #t :fill "both")

(label '.main.l :anchor "center" :text "xxx")
(pack '.main.l :fill "both")

(system "sleep 3") ;; want to sleep a bit before bringing up the button

(button '.main.b :text "button" :command '(destroy "."))
(pack '.main.b :fill "both")
Received on Sat Dec 24 1994 - 01:23:31 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST