bpo-33964: IDLE macosx - removed unused local dict. (GH-7926)

This commit is contained in:
Terry Jan Reedy 2022-11-06 15:10:22 -05:00 committed by GitHub
parent a71b117c3d
commit 5eff82fdde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,9 +174,8 @@ def overrideRootMenu(root, flist):
del mainmenu.menudefs[-3][1][0:2]
menubar = Menu(root)
root.configure(menu=menubar)
menudict = {}
menudict['window'] = menu = Menu(menubar, name='window', tearoff=0)
menu = Menu(menubar, name='window', tearoff=0)
menubar.add_cascade(label='Window', menu=menu, underline=0)
def postwindowsmenu(menu=menu):
@ -226,8 +225,7 @@ def help_dialog(event=None):
if isCarbonTk():
# for Carbon AquaTk, replace the default Tk apple menu
menudict['application'] = menu = Menu(menubar, name='apple',
tearoff=0)
menu = Menu(menubar, name='apple', tearoff=0)
menubar.add_cascade(label='IDLE', menu=menu)
mainmenu.menudefs.insert(0,
('application', [