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

Delta Between Two Patch Sets: Lib/idlelib/Bindings.py

Issue 17532: IDLE: Always include "Options" menu on MacOSX
Left Patch Set: Created 6 years, 10 months ago
Right Patch Set: Created 6 years, 10 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/idlelib/EditorWindow.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 # menu 98 # menu
99 del menudefs[-1][1][0:2] 99 del menudefs[-1][1][0:2]
100 100
101 # Remove the 'Configure' entry from the options menu, it is in the 101 # Remove the 'Configure' entry from the options menu, it is in the
102 # application menu as 'Preferences' 102 # application menu as 'Preferences'
103 del menudefs[-2][1][0:2] 103 del menudefs[-2][1][0:2]
104 104
105 default_keydefs = idleConf.GetCurrentKeySet() 105 default_keydefs = idleConf.GetCurrentKeySet()
106 106
107 del sys 107 del sys
LEFTRIGHT

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