#!/bin/sh # ---------------------------------------------------------------------- # DEMO: feedback in [incr Widgets] # ---------------------------------------------------------------------- #\ exec itkwish "$0" ${1+"$@"} package require Iwidgets 3.0 # itkwish interprets the rest... # ---------------------------------------------------------------------- . configure -background white iwidgets::feedback .fb -labeltext "Status" -steps 22 pack .fb -padx 4 -pady 4 button .go -text "Go" -command { .fb reset for {set i 0} {$i < 22} {incr i} { .fb step after 100 } } pack .go -padx 4 -pady 4