]>
vault307.fbx.one Git - mu_code.git/blob - menubarDemo.py
8 menubar
=tk
.Menu(window
)
9 filemenu
=tk
.Menu(menubar
,tearoff
=0)
10 """filemenu.add_command(label='New',command=donothing)
11 filemenu.add_command(label='Open',command=donothing)
12 filemenu.add_command(label='Save',command=donothing)
13 filemenu.add_separator()"""
14 menubar
.add_command(label
='exit',command
=window
.quit
)
15 menubar
.add_cascade(label
='file',menu
=filemenu
)
17 window
.config(menu
=menubar
)