Ignore:
Timestamp:
Mar 23, 2005, 8:19:29 PM (19 years ago)
Author:
mmc
Message:

Fixed the Tcl library to mirror the API developed for XML
libraries on the Python side. The Tcl Rappture::library
now has methods like "children", "element", "put", etc.
One difference: On the Tcl side, the default -flavor for
element/children is "component", since that works better
in Tcl code. In Python, the default is flavor=object.

Also fixed the Tcl install script to install not just
the tcl/scripts library, but also the ../gui and ../lib
directories.

File:
1 edited

Legend:

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

    r1 r6  
    258258# ----------------------------------------------------------------------
    259259itcl::configbody Rappture::Analyzer::tool {
    260     if {![Rappture::Library::valid $itk_option(-tool)]} {
     260    if {![Rappture::library isvalid $itk_option(-tool)]} {
    261261        error "bad value \"$itk_option(-tool)\": should be Rappture::Library"
    262262    }
     
    276276itcl::configbody Rappture::Analyzer::device {
    277277    if {$itk_option(-device) != ""
    278           && ![Rappture::Library::valid $itk_option(-device)]} {
     278          && ![Rappture::library isvalid $itk_option(-device)]} {
    279279        error "bad value \"$itk_option(-device)\": should be Rappture::Library"
    280280    }
     
    289289# ----------------------------------------------------------------------
    290290itcl::configbody Rappture::Analyzer::analysis {
    291     if {![Rappture::Library::valid $itk_option(-analysis)]} {
     291    if {![Rappture::library isvalid $itk_option(-analysis)]} {
    292292        error "bad value \"$itk_option(-analysis)\": should be Rappture::Library"
    293293    }
     
    299299
    300300    set counter 0
    301     foreach item [$itk_option(-analysis) get -children] {
     301    foreach item [$itk_option(-analysis) children] {
    302302        switch -glob -- $item {
    303303            xyplot* {
     
    311311
    312312                set _widgets($item) [Rappture::Xyplot $page.#auto \
    313                     -layout [$itk_option(-analysis) get -object $item]]
     313                    -layout [$itk_option(-analysis) element -flavor object $item]]
    314314                pack $_widgets($item) -expand yes -fill both
    315315            }
Note: See TracChangeset for help on using the changeset viewer.