Changeset 437 for trunk/gui/scripts/imageentry.tcl
- Timestamp:
- May 13, 2006, 1:13:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/imageentry.tcl
r428 r437 16 16 itcl::class Rappture::ImageEntry { 17 17 inherit itk::Widget 18 19 itk_option define -state state State "normal" 18 20 19 21 constructor {owner path args} { # defined below } … … 217 219 } 218 220 } 221 222 # ---------------------------------------------------------------------- 223 # CONFIGURATION OPTION: -state 224 # ---------------------------------------------------------------------- 225 itcl::configbody Rappture::ImageEntry::state { 226 set valid {normal disabled} 227 if {[lsearch -exact $valid $itk_option(-state)] < 0} { 228 error "bad value \"$itk_option(-state)\": should be [join $valid {, }]" 229 } 230 $itk_component(image) configure -state $itk_option(-state) 231 }
Note: See TracChangeset
for help on using the changeset viewer.