Ignore:
Timestamp:
Oct 22, 2010, 4:06:10 PM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r1342 r1929  
    4949itcl::body Rappture::GroupEntry::constructor {owner path args} {
    5050    if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} {
    51         error "bad object \"$owner\": should be Rappture::ControlOwner"
     51        error "bad object \"$owner\": should be Rappture::ControlOwner"
    5252    }
    5353    set _owner $owner
     
    5555
    5656    itk_component add heading {
    57         ::label $itk_interior.heading -anchor w
     57        ::label $itk_interior.heading -anchor w
    5858    } {
    59         usual
    60         rename -background -headingbackground headingBackground Background
    61         rename -foreground -headingforeground headingForeground Foreground
     59        usual
     60        rename -background -headingbackground headingBackground Background
     61        rename -foreground -headingforeground headingForeground Foreground
    6262    }
    6363
    6464    $itk_component(heading) configure \
    65         -text [$_owner xml get $_path.about.label]
     65        -text [$_owner xml get $_path.about.label]
    6666    Rappture::Tooltip::for $itk_component(heading) \
    67         [$_owner xml get $_path.about.description]
     67        [$_owner xml get $_path.about.description]
    6868
    6969    itk_component add outline {
    70         frame $itk_interior.outline -borderwidth 1
     70        frame $itk_interior.outline -borderwidth 1
    7171    } {
    72         usual
    73         ignore -borderwidth
    74         rename -background -headingbackground headingBackground Background
     72        usual
     73        ignore -borderwidth
     74        rename -background -headingbackground headingBackground Background
    7575    }
    7676    pack $itk_component(outline) -expand yes -fill both
    7777
    7878    itk_component add inner {
    79         frame $itk_component(outline).inner -borderwidth 3
     79        frame $itk_component(outline).inner -borderwidth 3
    8080    } {
    81         usual
    82         ignore -borderwidth
     81        usual
     82        ignore -borderwidth
    8383    }
    8484    pack $itk_component(inner) -expand yes -fill both
     
    129129itcl::configbody Rappture::GroupEntry::heading {
    130130    if {![string is boolean -strict $itk_option(-heading)]} {
    131         error "bad value \"$itk_option(-heading)\": should be boolean"
     131        error "bad value \"$itk_option(-heading)\": should be boolean"
    132132    }
    133133
    134134    set str [$itk_component(heading) cget -text]
    135135    if {$itk_option(-heading) && "" != $str} {
    136         eval pack forget [pack slaves $itk_component(hull)]
    137         pack $itk_component(heading) -side top -fill x
    138         pack $itk_component(outline) -expand yes -fill both
    139         $itk_component(outline) configure -borderwidth 1
    140         $itk_component(inner) configure -borderwidth 3
     136        eval pack forget [pack slaves $itk_component(hull)]
     137        pack $itk_component(heading) -side top -fill x
     138        pack $itk_component(outline) -expand yes -fill both
     139        $itk_component(outline) configure -borderwidth 1
     140        $itk_component(inner) configure -borderwidth 3
    141141    } else {
    142         pack forget $itk_component(heading)
    143         $itk_component(outline) configure -borderwidth 0
    144         $itk_component(inner) configure -borderwidth 0
     142        pack forget $itk_component(heading)
     143        $itk_component(outline) configure -borderwidth 0
     144        $itk_component(inner) configure -borderwidth 0
    145145    }
    146146}
     
    152152    set valid {normal disabled}
    153153    if {[lsearch -exact $valid $itk_option(-state)] < 0} {
    154         error "bad value \"$itk_option(-state)\": should be [join $valid {, }]"
     154        error "bad value \"$itk_option(-state)\": should be [join $valid {, }]"
    155155    }
    156156}
Note: See TracChangeset for help on using the changeset viewer.