summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 16:44:55 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 16:44:55 -0400
commitcd111d5af89cb20f671498bb8ae6cbd4a43dfde4 (patch)
tree1f1b43971dbfe79f03f7c0d2e8d647b66ed21fb5 /Lib
parente63a329c186e64e72b3e09b448a49612ec2b5e4a (diff)
parent659fcb0a8dd1c3733c609406522d95aa663f2eaa (diff)
downloadcpython-git-cd111d5af89cb20f671498bb8ae6cbd4a43dfde4.tar.gz
Merge with 3.5
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/EditorWindow.py7
-rw-r--r--Lib/idlelib/help.txt4
-rw-r--r--Lib/idlelib/macosxSupport.py5
3 files changed, 8 insertions, 8 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index ef35ffe466..7bc2aa7e19 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -447,14 +447,15 @@ class EditorWindow(object):
self.menudict = menudict = {}
for name, label in self.menu_specs:
underline, label = prepstr(label)
- menudict[name] = menu = Menu(mbar, name=name)
+ menudict[name] = menu = Menu(mbar, name=name, tearoff=0)
mbar.add_cascade(label=label, menu=menu, underline=underline)
if macosxSupport.isCarbonTk():
# Insert the application menu
- menudict['application'] = menu = Menu(mbar, name='apple')
+ menudict['application'] = menu = Menu(mbar, name='apple',
+ tearoff=0)
mbar.add_cascade(label='IDLE', menu=menu)
self.fill_menus()
- self.recent_files_menu = Menu(self.menubar)
+ self.recent_files_menu = Menu(self.menubar, tearoff=0)
self.menudict['file'].insert_cascade(3, label='Recent Files',
underline=0,
menu=self.recent_files_menu)
diff --git a/Lib/idlelib/help.txt b/Lib/idlelib/help.txt
index 9540173498..3f7bb23b61 100644
--- a/Lib/idlelib/help.txt
+++ b/Lib/idlelib/help.txt
@@ -15,9 +15,7 @@ Menus:
IDLE has two window types the Shell window and the Editor window. It is
possible to have multiple editor windows simultaneously. IDLE's
menus dynamically change based on which window is currently selected. Each menu
-documented below indicates which window type it is associated with. Click on
-the dotted line at the top of a menu to "tear it off": a separate window
-containing the menu is created (for Unix and Windows only).
+documented below indicates which window type it is associated with.
File Menu (Shell and Editor):
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py
index 58137492f9..77330cf91a 100644
--- a/Lib/idlelib/macosxSupport.py
+++ b/Lib/idlelib/macosxSupport.py
@@ -145,7 +145,7 @@ def overrideRootMenu(root, flist):
root.configure(menu=menubar)
menudict = {}
- menudict['windows'] = menu = Menu(menubar, name='windows')
+ menudict['windows'] = menu = Menu(menubar, name='windows', tearoff=0)
menubar.add_cascade(label='Window', menu=menu, underline=0)
def postwindowsmenu(menu=menu):
@@ -191,7 +191,8 @@ def overrideRootMenu(root, flist):
if isCarbonTk():
# for Carbon AquaTk, replace the default Tk apple menu
- menudict['application'] = menu = Menu(menubar, name='apple')
+ menudict['application'] = menu = Menu(menubar, name='apple',
+ tearoff=0)
menubar.add_cascade(label='IDLE', menu=menu)
Bindings.menudefs.insert(0,
('application', [