From dfae3d55f2b94cf52ffa40511359b7acfad7d7e6 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 6 Oct 1998 19:37:20 +0000 Subject: [PATCH] Added a 'Help' special menu to show how this is done. --- Demo/tkinter/guido/newmenubardemo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Demo/tkinter/guido/newmenubardemo.py b/Demo/tkinter/guido/newmenubardemo.py index 7e2d13acb37..cafbf63ef82 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)