Changeset 1929 for trunk/gui/scripts/image.tcl
- Timestamp:
- Oct 22, 2010, 4:06:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/image.tcl
r1342 r1929 35 35 itcl::body Rappture::Image::constructor {xmlobj path} { 36 36 if {![Rappture::library isvalid $xmlobj]} { 37 37 error "bad value \"$xmlobj\": should be LibraryObj" 38 38 } 39 39 set _xmlobj $xmlobj … … 41 41 set data [string trim [$xmlobj get $path.current]] 42 42 if {[string length $data] == 0} { 43 43 set _image [image create photo] 44 44 } else { 45 45 set _image [image create photo -data $data] 46 46 } 47 47 … … 66 66 itcl::body Rappture::Image::hints {{keyword ""}} { 67 67 if {$keyword != ""} { 68 69 70 71 68 if {[info exists _hints($keyword)]} { 69 return $_hints($keyword) 70 } 71 return "" 72 72 } 73 73 return [array get _hints]
Note: See TracChangeset
for help on using the changeset viewer.