summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 20:44:22 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-07-30 20:44:22 (GMT)
commit30f1f67248260b10eb16a3e630c6cf5c7e29fad2 (patch)
tree0538e3c65fe5162f3fe2a6d54315faee0ee5ef3c /Lib/idlelib/EditorWindow.py
parent41ca828580aa441baa334625a60f3975d14023eb (diff)
downloadcpython-30f1f67248260b10eb16a3e630c6cf5c7e29fad2.zip
cpython-30f1f67248260b10eb16a3e630c6cf5c7e29fad2.tar.gz
cpython-30f1f67248260b10eb16a3e630c6cf5c7e29fad2.tar.bz2
Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index ef35ffe..7bc2aa7 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)