Changeset 22 for trunk/gui/scripts/groupentry.tcl
- Timestamp:
- Jul 16, 2005, 2:31:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/groupentry.tcl
r11 r22 15 15 inherit itk::Widget 16 16 17 constructor { xmlobjpath args} { # defined below }17 constructor {owner path args} { # defined below } 18 18 19 19 public method value {args} … … 22 22 public method tooltip {} 23 23 24 private variable _ xmlobj "" ;# XML containing description24 private variable _owner "" ;# thing managing this control 25 25 private variable _path "" ;# path in XML to this number 26 26 } … … 36 36 # CONSTRUCTOR 37 37 # ---------------------------------------------------------------------- 38 itcl::body Rappture::GroupEntry::constructor { xmlobjpath args} {39 if { ![Rappture::library isvalid $xmlobj]} {40 error "bad value \"$xmlobj\": should be Rappture::library"38 itcl::body Rappture::GroupEntry::constructor {owner path args} { 39 if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} { 40 error "bad object \"$owner\": should be Rappture::ControlOwner" 41 41 } 42 set _ xmlobj $xmlobj42 set _owner $owner 43 43 set _path $path 44 44 … … 67 67 # ---------------------------------------------------------------------- 68 68 itcl::body Rappture::GroupEntry::label {} { 69 return [$_ xmlobjget $_path.about.label]69 return [$_owner xml get $_path.about.label] 70 70 } 71 71 … … 79 79 # ---------------------------------------------------------------------- 80 80 itcl::body Rappture::GroupEntry::tooltip {} { 81 return [$_ xmlobjget $_path.about.description]81 return [$_owner xml get $_path.about.description] 82 82 }
Note: See TracChangeset
for help on using the changeset viewer.