mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
#6075: make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer and Ned Deily.
This commit is contained in:
parent
7504302875
commit
aedd2899c2
5 changed files with 46 additions and 39 deletions
|
@ -387,7 +387,7 @@ class EditorWindow(object):
|
|||
underline, label = prepstr(label)
|
||||
menudict[name] = menu = Menu(mbar, name=name)
|
||||
mbar.add_cascade(label=label, menu=menu, underline=underline)
|
||||
if macosxSupport.runningAsOSXApp():
|
||||
if macosxSupport.isCarbonAquaTk(self.root):
|
||||
# Insert the application menu
|
||||
menudict['application'] = menu = Menu(mbar, name='apple')
|
||||
mbar.add_cascade(label='IDLE', menu=menu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue