Changeset 3656
- Timestamp:
- May 15, 2013, 2:02:59 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/main.tcl
r3653 r3656 124 124 # examples/ and docs/ dirs from the install location 125 125 foreach runobj $loadobjs { 126 set tdir [$runobj get tool.version.application.directory(tool)] 126 set tdir \ 127 [string trim [$runobj get tool.version.application.directory(tool)]] 127 128 if {[file isdirectory $tdir] && \ 128 129 [file exists $tdir/tool.xml]} { … … 221 222 # Add a place for about/questions in the breadcrumbs area of this pager. 222 223 # 223 set app [ $tool xml get tool.id]224 set app [string trim [$tool xml get tool.id]] 224 225 set url [Rappture::Tool::resources -huburl] 225 226 if {"" != $url && "" != $app} { -
trunk/gui/scripts/sequencedial.tcl
r3330 r3656 78 78 private method EventuallyRedraw {} 79 79 private variable _redrawPending 0 80 80 private variable _afterId -1 81 81 private variable _values "" ;# list of all values on the dial 82 82 private variable _val2label ;# maps value => string label(s) … … 121 121 itcl::body Rappture::SequenceDial::destructor {} { 122 122 configure -variable "" ;# remove variable trace 123 EventuallyRedraw123 after cancel $_afterId 124 124 } 125 125 … … 155 155 itcl::body Rappture::SequenceDial::EventuallyRedraw {} { 156 156 if { !$_redrawPending } { 157 after 150 [itcl::code $this _redraw]157 set _afterId [after 150 [itcl::code $this _redraw]] 158 158 event generate $itk_component(hull) <<Value>> 159 159 set _resizePending 1 -
trunk/gui/scripts/vtkheightmapviewer.tcl
r3638 r3656 80 80 protected method Rotate {option x y} 81 81 protected method Zoom {option} 82 82 83 83 # The following methods are only used by this class. 84 84 private method BuildAxisTab {} … … 193 193 $_parser alias legend [itcl::code $this ReceiveLegend] 194 194 195 # Create image for legend colorbar. 196 set _image(legend) [image create photo] 197 195 198 # Initialize the view to some default parameters. 196 199 array set _view { … … 209 212 210 213 array set _settings { 211 212 213 214 axisFlymode "static" 215 axisMinorTicks 1 216 stretchToFit 0 214 217 axisLabels 1 215 218 axisVisible 1 … … 250 253 itk_component add fieldmenu { 251 254 menu $itk_component(plotarea).menu \ 252 255 -relief flat \ 253 256 -tearoff no 254 257 } { … … 332 335 puts stderr "errs=$errs errorInfo=$errorInfo" 333 336 } 334 set _image(legend) [image create photo]335 337 336 338 # Hack around the Tk panewindow. The problem is that the requested … … 1502 1504 $itk_component(outline) configure -state normal 1503 1505 SendCmd "camera mode image" 1504 1506 } 1505 1507 if {$_settings(stretchToFit)} { 1506 1508 if {$scale == 0} { -
trunk/gui/scripts/xyprint.tcl
r3635 r3656 1451 1451 } 1452 1452 set axis [list $axis] 1453 append out " if \{ [llength [preview axis names $axis]] == 1 \} \{\n"1453 append out " if \{ \[llength \[preview axis names $axis\]\] == 1 \} \{\n" 1454 1454 append out " preview axis configure $axis" 1455 1455 foreach opt { -hide -min -max -loose -title -stepsize -subdivisions } {
Note: See TracChangeset
for help on using the changeset viewer.