Changeset 995 for trunk/gui/scripts/booleanentry.tcl
- Timestamp:
- Apr 9, 2008, 11:41:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/booleanentry.tcl
r880 r995 52 52 # hints in the XML. 53 53 # 54 set defaultVal [$_owner xml get $path.default]55 54 itk_component add switch { 56 Rappture::Switch $itk_interior.switch $defaultVal55 Rappture::Switch $itk_interior.switch 57 56 } 58 57 pack $itk_component(switch) -expand yes -fill both … … 76 75 # Assign the default value to this widget, if there is one. 77 76 # 78 if {"" != $defaultVal} { 79 $itk_component(switch) value $defaultVal 77 set str [$_owner xml get $path.default] 78 if {"" != $str} { 79 $itk_component(switch) value $str 80 80 } else { 81 81 $itk_component(switch) value off
Note: See TracChangeset
for help on using the changeset viewer.