mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added a 'Help' special menu to show how this is done.
This commit is contained in:
parent
da65450530
commit
dfae3d55f2
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue