Added a 'Help' special menu to show how this is done.

This commit is contained in:
Barry Warsaw 1998-10-06 19:37:20 +00:00
parent da65450530
commit dfae3d55f2
1 changed files with 5 additions and 0 deletions

View File

@ -25,8 +25,13 @@ class App:
self.editmenu.add_command(label="Copy")
self.editmenu.add_command(label="Paste")
self.helpmenu = Menu(self.menubar, name='help')
self.helpmenu.add_command(label="About...")
self.menubar.add_cascade(label="File", menu=self.filemenu)
self.menubar.add_cascade(label="Edit", menu=self.editmenu)
self.menubar.add_cascade(label="Help", menu=self.helpmenu)
self.top = Toplevel(menu=self.menubar)