- Timestamp:
- May 2, 2012, 12:13:53 PM (13 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/drawingentry.tcl
r2992 r2995 327 327 } 328 328 set c $itk_component(drawing) 329 set img [image create photo -file ~/question_mark12.png]329 set img [image create photo -file [Rappture::icon question_mark12]] 330 330 foreach { x1 y1 } $coords break 331 331 set id [$itk_component(drawing) create image $x1 $y1] -
trunk/gui/scripts/page.tcl
r2938 r2995 133 133 [itcl::code $this _link $xmlobj $link $w $path.$cname] 134 134 } 135 } elseif {$type == "drawing"} {136 #137 # Add <drawing>'s as the central element of the page.138 #139 set w "$frame.drawing[incr num]"140 Rappture::DrawingEntry ::$w $_owner $path.$cname141 pack $w -expand yes -fill both142 $_owner widgetfor $path.$cname $w143 bind $w <<Value>> [list $_owner changed $path.$cname]144 145 # if there's a default value, load it now146 if {"" != [$xmlobj element -as type $path.$cname.current]} {147 set elem $path.$cname.current148 } else {149 set elem $path.$cname.default150 }151 if {"" != [$xmlobj element -as type $elem]} {152 set val [$xmlobj get $elem]153 if {[string length $val] > 0} {154 $w value $val155 $xmlobj put $path.$cname.current $val156 } else {157 set obj [$xmlobj element -as object $elem]158 $w value $obj159 $xmlobj put $path.$cname.current $obj160 }161 }162 135 } elseif {$type == "tool"} { 163 136 set service [Rappture::Service ::#auto $_owner $path.$cname]
Note: See TracChangeset
for help on using the changeset viewer.