Ignore:
Timestamp:
Feb 12, 2008, 9:34:20 PM (17 years ago)
Author:
dkearney
Message:

these updates to booleanentry.tcl are needed for the new boolean switch to work properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/booleanentry.tcl

    r437 r880  
    5252    # hints in the XML.
    5353    #
     54    set defaultVal [$_owner xml get $path.default]
    5455    itk_component add switch {
    55         Rappture::Switch $itk_interior.switch
     56        Rappture::Switch $itk_interior.switch $defaultVal
    5657    }
    5758    pack $itk_component(switch) -expand yes -fill both
     
    7576    # Assign the default value to this widget, if there is one.
    7677    #
    77     set str [$_owner xml get $path.default]
    78     if {"" != $str} {
    79         $itk_component(switch) value $str
     78    if {"" != $defaultVal} {
     79        $itk_component(switch) value $defaultVal
    8080    } else {
    8181        $itk_component(switch) value off
Note: See TracChangeset for help on using the changeset viewer.