Changeset 3330 for trunk/gui/scripts/pushbutton.tcl
- Timestamp:
- Feb 24, 2013, 1:11:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/pushbutton.tcl
r3177 r3330 1 # -*- mode: tcl; indent-tabs-mode: nil -*- 1 2 2 3 # ---------------------------------------------------------------------- … … 28 29 itk_option define -onvalue onValue OnValue "normal" 29 30 itk_option define -offvalue offValue OffValue "normal" 31 itk_option define -onbackground onBackground OnBackground "white" 32 itk_option define -offbackground offBackground OffBackground "grey85" 30 33 31 34 constructor {args} { … … 54 57 public variable onvalue "1"; # Value set when selected. 55 58 public variable offvalue "0"; # Value set when deselected. 59 public variable onbackground "white" 60 public variable offbackground "grey85" 56 61 } 57 62 … … 133 138 set _state 1 134 139 $itk_component(button) configure -relief sunken \ 135 -image $onimage -bg white140 -image $onimage -bg $onbackground 136 141 } else { 137 142 set _state 0 138 143 $itk_component(button) configure -relief raise \ 139 -image $offimage -bg grey85144 -image $offimage -bg $offbackground 140 145 } 141 146 }
Note: See TracChangeset
for help on using the changeset viewer.