Changeset 1277 for trunk/gui/scripts/visviewer.tcl
- Timestamp:
- Feb 19, 2009 3:13:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/visviewer.tcl
r1247 r1277 88 88 } 89 89 90 itk::usual Panedwindow { 91 keep -background -cursor 92 } 93 90 94 # ---------------------------------------------------------------------- 91 95 # CONSTRUCTOR … … 128 132 # RENDERING AREA 129 133 # 134 itk_component add drawer { 135 panedwindow $itk_interior.drawer \ 136 -orient horizontal -opaqueresize 1 -handlepad 0 \ 137 -handlesize 1 -sashwidth 2 138 } 139 pack $itk_component(drawer) -expand yes -fill both 140 130 141 itk_component add area { 131 142 frame $itk_interior.area 132 143 } 133 pack $itk_component(area) -expand yes -fill both144 $itk_component(drawer) add $itk_component(area) -sticky nsew 134 145 135 146 set _image(plot) [image create photo] … … 273 284 itcl::body Rappture::VisViewer::Disconnect {} { 274 285 $_dispatcher cancel !timeout 275 if { [IsConnected] } { 276 catch {close $sid_} 277 set sid_ "" 278 } 286 catch {close $sid_} 287 set sid_ "" 279 288 set buffer_(in) "" 280 289 } … … 450 459 return 0 451 460 } 452 if { [gets $sid_ line] < 0 } { 461 set n [gets $sid_ line] 462 463 if { $n < 0 } { 453 464 Disconnect 465 return 0 454 466 } 455 467 set line [string trim $line]
Note: See TracChangeset
for help on using the changeset viewer.