Changeset 2977 for trunk/gui/scripts/visviewer.tcl
- Timestamp:
- Apr 25, 2012, 11:31:03 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/visviewer.tcl
r2744 r2977 40 40 #private variable _idleTimeout 5000; # 5 seconds 41 41 #private variable _idleTimeout 0; # No timeout 42 private variable _logging 0 42 43 43 44 protected variable _dispatcher ""; # dispatcher for !events … … 163 164 pack $itk_component(plotarea) -fill both -expand yes 164 165 set _image(plot) [image create photo] 166 167 global env 168 if { [info exists env(VISRECORDER)] } { 169 set _logging 1 170 } 165 171 eval itk_initialize $args 166 172 } … … 421 427 422 428 # 423 # ReceiveBytes--429 # StartWaiting -- 424 430 # 425 431 # Read some number of bytes from the visualization server. … … 544 550 # 545 551 itcl::body Rappture::VisViewer::SendEcho {channel {data ""}} { 552 if { $_logging } { 553 set f [open "/tmp/recording.log" "a"] 554 puts $f $data 555 close $f 556 } 546 557 #puts stderr ">>($data)" 547 558 if {[string length $itk_option(-sendcommand)] > 0} {
Note: See TracChangeset
for help on using the changeset viewer.