I'm not certain what's going on, but running the Tcl after command within a Gnocl application results in the after command not working properly. No big problem. use the gnocl::timeOut command which offers the same basic functionality.
gnocl::timer milliseconds script
returns timerid
To stop a timer, run
gnocl::timer stop timerid
Here's a sample script:
# !/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
set start [gnocl::button -text "START" -onClicked {
