home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
28_11.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
202b
|
15 lines
#
# Example 28-11
# MenuGet maps from name to menu.
#
proc MenuGet {menuName} {
global menu
if [catch {set menu(menu,$menuName)} m] {
return -code error "No such menu: $menuName"
}
return $m
}