Ignore:
Timestamp:
Mar 25, 2007, 3:20:49 PM (18 years ago)
Author:
mmc
Message:

Enhanced the <loader> to support upload/download for multiple inputs.
Also, added upload/download options to the right-mouse button menu
for <string> inputs. <string> inputs now accept binary data, so you
can use them to upload binary files.

File:
1 edited

Legend:

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

    r637 r640  
    2424    } { # defined below }
    2525
     26    public method get {{option ""}}
    2627    public method installdir {} { return $_installdir }
    2728
     
    6263
    6364    eval configure $args
     65}
     66
     67# ----------------------------------------------------------------------
     68# USAGE: get ?-option?
     69#
     70# Clients use this to query information about the tool.
     71# ----------------------------------------------------------------------
     72itcl::body Rappture::Tool::get {{option ""}} {
     73    set values(-name) $_appname
     74    if {$option == ""} {
     75        return [array get values]
     76    }
     77    if {![info exists values]} {
     78        error "bad option \"$option\": should be [join [array names values] {, }]"
     79    }
     80    return $values($option)
    6481}
    6582
Note: See TracChangeset for help on using the changeset viewer.