Changeset 126 for trunk/gui/scripts


Ignore:
Timestamp:
Nov 4, 2005, 11:08:21 PM (19 years ago)
Author:
mmc
Message:
  • Added a new <image> which can be used on both the input and the output side.
  • Added examples to the zoo for images and tables (energy viewer).
Location:
trunk/gui/scripts
Files:
3 added
2 edited

Legend:

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

    r120 r126  
    144144            Rappture::TextEntry $w $_owner $path
    145145            bind $w <<Value>> [itcl::code $this _controlChanged $path]
     146        }
     147        image {
     148            Rappture::ImageEntry $w $_owner $path
    146149        }
    147150        control {
  • trunk/gui/scripts/resultviewer.tcl

    r115 r126  
    1414# ======================================================================
    1515package require Itk
     16package require Img
    1617
    1718itcl::class Rappture::ResultViewer {
     
    282283            }
    283284        }
     285        ::Rappture::Image {
     286            set mode "image"
     287            if {![info exists _mode2widget($mode)]} {
     288                set w $itk_interior.image
     289                Rappture::ImageResult $w
     290                set _mode2widget($mode) $w
     291            }
     292        }
    284293        default {
    285294            error "don't know how to plot <$type> data"
     
    363372        table {
    364373            return [Rappture::Table ::#auto $xmlobj $path]
     374        }
     375        image {
     376            return [Rappture::Image ::#auto $xmlobj $path]
    365377        }
    366378        string - log {
Note: See TracChangeset for help on using the changeset viewer.