diff options
author | Barry Warsaw <barry@python.org> | 1998-10-06 19:37:20 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-10-06 19:37:20 (GMT) |
commit | dfae3d55f2b94cf52ffa40511359b7acfad7d7e6 (patch) | |
tree | b505841c5d78ee255120c0e6641ca325b4ef657e /Demo/tkinter/guido/newmenubardemo.py | |
parent | da654505307c766169915e133cd03e78b240acaf (diff) | |
download | cpython-dfae3d55f2b94cf52ffa40511359b7acfad7d7e6.zip cpython-dfae3d55f2b94cf52ffa40511359b7acfad7d7e6.tar.gz cpython-dfae3d55f2b94cf52ffa40511359b7acfad7d7e6.tar.bz2 |
Added a 'Help' special menu to show how this is done.
Diffstat (limited to 'Demo/tkinter/guido/newmenubardemo.py')
-rw-r--r-- | Demo/tkinter/guido/newmenubardemo.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Demo/tkinter/guido/newmenubardemo.py b/Demo/tkinter/guido/newmenubardemo.py index 7e2d13a..cafbf63 100644 --- a/Demo/tkinter/guido/newmenubardemo.py +++ b/Demo/tkinter/guido/newmenubardemo.py @@ -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) |