1 # vim: ft=tcl foldmarker=<<<,>>>
6 constructor
{args
} {} {}
9 variable min
0 {recalc
}
10 variable max
10 {recalc
}
11 variable step
1 {recalc
}
19 body tlc
::Spinint::constructor {args
} {
20 eval itk_initialize
$args
21 # set up the list with the min / max
25 body tlc
::Spinint::recalc {} {
26 if {![string is integer min
] ||
![string is integer max
] ||
![string is integer step
]} {
34 for {set i
$min} {$i <= $max} {incr i
$step} {
38 error "Spinint requires integer values for min, max and step.\nValues passed were: min: ($min)\tmax: ($max)\tstep: ($step)"