Ignore:
Timestamp:
Apr 25, 2012, 11:31:03 AM (12 years ago)
Author:
gah
Message:

fix multiple for about icons for 2 page tools with manual-resim set

File:
1 edited

Legend:

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

    r2744 r2977  
    4040    #private variable _idleTimeout 5000;    # 5 seconds
    4141    #private variable _idleTimeout 0;       # No timeout
     42    private variable _logging 0
    4243
    4344    protected variable _dispatcher "";  # dispatcher for !events
     
    163164    pack $itk_component(plotarea) -fill both -expand yes
    164165    set _image(plot) [image create photo]
     166
     167    global env
     168    if { [info exists env(VISRECORDER)] } {
     169        set _logging 1
     170    }
    165171    eval itk_initialize $args
    166172}
     
    421427
    422428#
    423 # ReceiveBytes --
     429# StartWaiting --
    424430#
    425431#    Read some number of bytes from the visualization server.
     
    544550#
    545551itcl::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    }
    546557    #puts stderr ">>($data)"
    547558    if {[string length $itk_option(-sendcommand)] > 0} {
Note: See TracChangeset for help on using the changeset viewer.