Changeset 2995 for trunk/gui


Ignore:
Timestamp:
May 2, 2012, 12:13:53 PM (13 years ago)
Author:
gah
Message:
 
Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/drawingentry.tcl

    r2992 r2995  
    327327    }
    328328    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]]
    330330    foreach { x1 y1 } $coords break
    331331    set id [$itk_component(drawing) create image $x1 $y1]
  • trunk/gui/scripts/page.tcl

    r2938 r2995  
    133133                    [itcl::code $this _link $xmlobj $link $w $path.$cname]
    134134            }
    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.$cname
    141             pack $w -expand yes -fill both
    142             $_owner widgetfor $path.$cname $w
    143             bind $w <<Value>> [list $_owner changed $path.$cname]
    144 
    145             # if there's a default value, load it now
    146             if {"" != [$xmlobj element -as type $path.$cname.current]} {
    147                 set elem $path.$cname.current
    148             } else {
    149                 set elem $path.$cname.default
    150             }
    151             if {"" != [$xmlobj element -as type $elem]} {
    152                 set val [$xmlobj get $elem]
    153                 if {[string length $val] > 0} {
    154                     $w value $val
    155                     $xmlobj put $path.$cname.current $val
    156                 } else {
    157                     set obj [$xmlobj element -as object $elem]
    158                     $w value $obj
    159                     $xmlobj put $path.$cname.current $obj
    160                 }
    161             }
    162135        } elseif {$type == "tool"} {
    163136            set service [Rappture::Service ::#auto $_owner $path.$cname]
Note: See TracChangeset for help on using the changeset viewer.