head	1.2;
access;
symbols
	rel-5-2:1.1
	rel-5-1-patches:1.1.0.2
	rel-5-1:1.1;
locks; strict;
comment	@# @;


1.2
date	2000.12.06.21.23.02;	author bparker;	state dead;
branches;
next	1.1;

1.1
date	99.11.08.18.51.37;	author jra;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2000.12.06.21.27.50;	author bparker;	state dead;
branches;
next	;


desc
@@


1.2
log
@Upgrading to newer version
@
text
@#!/bin/sh
# ----------------------------------------------------------------------
#  DEMO: spinint in [incr Widgets]
# ----------------------------------------------------------------------
#\
exec itkwish -f "$0" ${1+"$@@"}
package require -exact Iwidgets 2.2

# itkwish interprets the rest...
# ----------------------------------------------------------------------
option add *textBackground seashell
. configure -background white

iwidgets::spinint .times -labeltext "Countdown:" -range {0 10} -width 3
pack .times -padx 10 -pady 10

.times delete 0 end
.times insert end "5"

frame .test
pack .test -padx 10 -pady 10
button .test.go -text "Go" -command {
    set count [.times get]
    while {$count >= 0} {
        .test.readout configure -text $count
        update
        after 200
        incr count -1
    }
    .test.readout configure -text "blast-off!"
}
pack .test.go -side left
label .test.readout -width 15 -background seashell
pack .test.readout -side left -padx 4 -pady 4
@


1.1
log
@Stuff that got missed in first pass
@
text
@@


1.1.2.1
log
@Upgrading to newer version
@
text
@@


