Changeset 5033 for branches/uiuc_vtk_viewers/gui/scripts/gauge.tcl
- Timestamp:
- Feb 19, 2015, 8:33:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uiuc_vtk_viewers/gui/scripts/gauge.tcl
r5032 r5033 42 42 itk_option define -sampleheight sampleHeight SampleHeight 0 43 43 itk_option define -log log Log "" 44 itk_option define -validatecommand validateCommand ValidateCommand "" 44 45 45 46 constructor {args} { # defined below } … … 290 291 } 291 292 293 # 294 # If there's a -validatecommand option, then invoke the code 295 # now to check the new value. 296 # 297 if {[string length $itk_option(-validatecommand)] > 0} { 298 set cmd "uplevel #0 [list $itk_option(-validatecommand) [list $newval]]" 299 set result [eval $cmd] 300 } 301 292 302 if {$onlycheck} { 293 303 return
Note: See TracChangeset
for help on using the changeset viewer.