Ignore:
Timestamp:
Feb 24, 2013, 1:11:18 PM (12 years ago)
Author:
gah
Message:

merge (by hand) with Rappture1.2 branch

File:
1 edited

Legend:

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

    r3177 r3330  
     1# -*- mode: tcl; indent-tabs-mode: nil -*-
    12
    23# ----------------------------------------------------------------------
     
    2829    itk_option define -onvalue onValue OnValue "normal"
    2930    itk_option define -offvalue offValue OffValue "normal"
     31    itk_option define -onbackground onBackground OnBackground "white"
     32    itk_option define -offbackground offBackground OffBackground "grey85"
    3033
    3134    constructor {args} {
     
    5457    public variable onvalue "1";        # Value set when selected.
    5558    public variable offvalue "0";       # Value set when deselected.
     59    public variable onbackground "white"
     60    public variable offbackground "grey85"
    5661}
    5762
     
    133138        set _state 1
    134139        $itk_component(button) configure -relief sunken \
    135             -image $onimage -bg white
     140            -image $onimage -bg $onbackground
    136141    } else {
    137142        set _state 0
    138143        $itk_component(button) configure -relief raise \
    139             -image $offimage -bg grey85
     144            -image $offimage -bg $offbackground
    140145    }
    141146}
Note: See TracChangeset for help on using the changeset viewer.