Attachment "exercise.tcl" to
ticket [fbaed1f6]
added by
erikleunissen
2018-07-14 18:57:03.
(unpublished)
#! /bin/sh
# If executed as a shell script, the next line replaces the shell with tclsh \
exec tclsh "$0" ${1+"$@"}
package require Tk
set index -1
while {1} {
if {[catch {
image create photo -file [file join [file dirname [info script]] anim.gif] -format "gif -index [incr index]"
} errMsg]} {
error "At index $index: $errMsg"
}
}
# EOF