Re: Nesting behvior of tkwait



"Dave Dean" <dave.dean@xxxxxxxxxx> writes:

When run, this seems to allow a queue of commands to be built up.

It is a stack, not a queue.

proc waitVar {num} {
set cont $num
tkwait variable cont
.text insert end $num
}

As Bruce says, the event handlers do stack up: "recursive event loops".

But I'll mention that you forgot "global cont", so your test didn't
prove anything anyway.


--
Donald Arseneau asnd@xxxxxxxxx
.