Added a 'Help' special menu to show how this is done.
This commit is contained in:
parent
da65450530
commit
dfae3d55f2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue