mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -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', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue