Changeset 640 for trunk/gui/scripts/tool.tcl
- Timestamp:
- Mar 25, 2007, 3:20:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/tool.tcl
r637 r640 24 24 } { # defined below } 25 25 26 public method get {{option ""}} 26 27 public method installdir {} { return $_installdir } 27 28 … … 62 63 63 64 eval configure $args 65 } 66 67 # ---------------------------------------------------------------------- 68 # USAGE: get ?-option? 69 # 70 # Clients use this to query information about the tool. 71 # ---------------------------------------------------------------------- 72 itcl::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) 64 81 } 65 82
Note: See TracChangeset
for help on using the changeset viewer.