Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(45)

Side by Side Diff: Lib/idlelib/Bindings.py

Issue 17532: IDLE: Always include "Options" menu on MacOSX
Patch Set: Created 6 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Lib/idlelib/EditorWindow.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Define the menu contents, hotkeys, and event bindings. 1 """Define the menu contents, hotkeys, and event bindings.
2 2
3 There is additional configuration information in the EditorWindow class (and 3 There is additional configuration information in the EditorWindow class (and
4 subclasses): the menus are created there based on the menu_specs (class) 4 subclasses): the menus are created there based on the menu_specs (class)
5 variable, and menus not created are silently skipped in the code here. This 5 variable, and menus not created are silently skipped in the code here. This
6 makes it possible, for example, to define a Debug menu which is only present in 6 makes it possible, for example, to define a Debug menu which is only present in
7 the PythonShell window, and a Format menu which is only present in the Editor 7 the PythonShell window, and a Format menu which is only present in the Editor
8 windows. 8 windows.
9 9
10 """ 10 """
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 # Remove the last 3 items of the file menu: a separator, close window and 91 # Remove the last 3 items of the file menu: a separator, close window and
92 # quit. Close window will be reinserted just above the save item, where 92 # quit. Close window will be reinserted just above the save item, where
93 # it should be according to the HIG. Quit is in the application menu. 93 # it should be according to the HIG. Quit is in the application menu.
94 del menudefs[0][1][-3:] 94 del menudefs[0][1][-3:]
95 menudefs[0][1].insert(6, closeItem) 95 menudefs[0][1].insert(6, closeItem)
96 96
97 # Remove the 'About' entry from the help menu, it is in the application 97 # Remove the 'About' entry from the help menu, it is in the application
98 # menu 98 # menu
99 del menudefs[-1][1][0:2] 99 del menudefs[-1][1][0:2]
100
101 # Remove the 'Configure' entry from the options menu, it is in the
102 # application menu as 'Preferences'
103 del menudefs[-2][1][0:2]
100 104
101 default_keydefs = idleConf.GetCurrentKeySet() 105 default_keydefs = idleConf.GetCurrentKeySet()
102 106
103 del sys 107 del sys
OLDNEW
« no previous file with comments | « no previous file | Lib/idlelib/EditorWindow.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+