Tk Source Code

Artifact [ca69f1a5]
Login

Artifact ca69f1a579c5f62ed29d6fcf505b276ad1859028b0d9c079c7e71468028a8634:

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