mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy.
This commit is contained in:
parent
41ca828580
commit
30f1f67248
4 changed files with 8 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue