Ignore:
Timestamp:
Sep 2, 2008, 1:32:34 PM (16 years ago)
Author:
gah
Message:

use different icon for switch check

File:
1 edited

Legend:

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

    r997 r1135  
    212212    }
    213213    lappend _dlist $dataobj
    214 
    215214    $_dispatcher event -idle !rebuild
    216215}
     
    289288# ----------------------------------------------------------------------
    290289itcl::body Rappture::SequenceResult::download {option args} {
     290    if { ![winfo exists $itk_component(area).viewer] } {
     291        return ""; # No data, no viewer, no download.
     292    }
    291293    switch $option {
    292294        coming {
    293             return [$itk_component(area).viewer download coming]
     295            return [$itk_component(area).viewer download coming]
    294296        }
    295297        controls {
     
    336338# ----------------------------------------------------------------------
    337339itcl::body Rappture::SequenceResult::play {} {
     340    if { [llength $_indices] == 0 } {
     341        return;                         # No frames (i.e. no data).
     342    }
    338343    # cancel any existing animation
    339344    pause
     
    477482            }
    478483            default {
    479                 error "don't know how to view sequences of $type"
     484                puts stderr "don't know how to view sequences of type \"$type\""
     485                puts stderr "Is the sequence empty?"
     486                return
    480487            }
    481488        }
Note: See TracChangeset for help on using the changeset viewer.