home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
28_7.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
322b
|
18 lines
#
# Example 28-7
# A menu bar in Tk 8.0.
#
menu .menubar
# attach it to the main window
. config -menu .menubar
# Create more cascade menus
foreach m {File Edit Help} {
set $m [menu .menubar.m$m]
.menubar add cascade -label $m -menu .menubar.m$m
}
$File add command -label Quit -command exit
# add more menu items...