Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../lib64/python2..../idlelib
File: Bindings.py
"""Define the menu contents, hotkeys, and event bindings.
[0] Fix | Delete
[1] Fix | Delete
There is additional configuration information in the EditorWindow class (and
[2] Fix | Delete
subclasses): the menus are created there based on the menu_specs (class)
[3] Fix | Delete
variable, and menus not created are silently skipped in the code here. This
[4] Fix | Delete
makes it possible, for example, to define a Debug menu which is only present in
[5] Fix | Delete
the PythonShell window, and a Format menu which is only present in the Editor
[6] Fix | Delete
windows.
[7] Fix | Delete
[8] Fix | Delete
"""
[9] Fix | Delete
from idlelib.configHandler import idleConf
[10] Fix | Delete
[11] Fix | Delete
# Warning: menudefs is altered in macosxSupport.overrideRootMenu()
[12] Fix | Delete
# after it is determined that an OS X Aqua Tk is in use,
[13] Fix | Delete
# which cannot be done until after Tk() is first called.
[14] Fix | Delete
# Do not alter the 'file', 'options', or 'help' cascades here
[15] Fix | Delete
# without altering overrideRootMenu() as well.
[16] Fix | Delete
# TODO: Make this more robust
[17] Fix | Delete
[18] Fix | Delete
menudefs = [
[19] Fix | Delete
# underscore prefixes character to underscore
[20] Fix | Delete
('file', [
[21] Fix | Delete
('_New File', '<<open-new-window>>'),
[22] Fix | Delete
('_Open...', '<<open-window-from-file>>'),
[23] Fix | Delete
('Open _Module...', '<<open-module>>'),
[24] Fix | Delete
('Class _Browser', '<<open-class-browser>>'),
[25] Fix | Delete
('_Path Browser', '<<open-path-browser>>'),
[26] Fix | Delete
None,
[27] Fix | Delete
('_Save', '<<save-window>>'),
[28] Fix | Delete
('Save _As...', '<<save-window-as-file>>'),
[29] Fix | Delete
('Save Cop_y As...', '<<save-copy-of-window-as-file>>'),
[30] Fix | Delete
None,
[31] Fix | Delete
('Prin_t Window', '<<print-window>>'),
[32] Fix | Delete
None,
[33] Fix | Delete
('_Close', '<<close-window>>'),
[34] Fix | Delete
('E_xit', '<<close-all-windows>>'),
[35] Fix | Delete
]),
[36] Fix | Delete
('edit', [
[37] Fix | Delete
('_Undo', '<<undo>>'),
[38] Fix | Delete
('_Redo', '<<redo>>'),
[39] Fix | Delete
None,
[40] Fix | Delete
('Cu_t', '<<cut>>'),
[41] Fix | Delete
('_Copy', '<<copy>>'),
[42] Fix | Delete
('_Paste', '<<paste>>'),
[43] Fix | Delete
('Select _All', '<<select-all>>'),
[44] Fix | Delete
None,
[45] Fix | Delete
('_Find...', '<<find>>'),
[46] Fix | Delete
('Find A_gain', '<<find-again>>'),
[47] Fix | Delete
('Find _Selection', '<<find-selection>>'),
[48] Fix | Delete
('Find in Files...', '<<find-in-files>>'),
[49] Fix | Delete
('R_eplace...', '<<replace>>'),
[50] Fix | Delete
('Go to _Line', '<<goto-line>>'),
[51] Fix | Delete
]),
[52] Fix | Delete
('format', [
[53] Fix | Delete
('_Indent Region', '<<indent-region>>'),
[54] Fix | Delete
('_Dedent Region', '<<dedent-region>>'),
[55] Fix | Delete
('Comment _Out Region', '<<comment-region>>'),
[56] Fix | Delete
('U_ncomment Region', '<<uncomment-region>>'),
[57] Fix | Delete
('Tabify Region', '<<tabify-region>>'),
[58] Fix | Delete
('Untabify Region', '<<untabify-region>>'),
[59] Fix | Delete
('Toggle Tabs', '<<toggle-tabs>>'),
[60] Fix | Delete
('New Indent Width', '<<change-indentwidth>>'),
[61] Fix | Delete
]),
[62] Fix | Delete
('run', [
[63] Fix | Delete
('Python Shell', '<<open-python-shell>>'),
[64] Fix | Delete
]),
[65] Fix | Delete
('shell', [
[66] Fix | Delete
('_View Last Restart', '<<view-restart>>'),
[67] Fix | Delete
('_Restart Shell', '<<restart-shell>>'),
[68] Fix | Delete
None,
[69] Fix | Delete
('_Interrupt Execution', '<<interrupt-execution>>'),
[70] Fix | Delete
]),
[71] Fix | Delete
('debug', [
[72] Fix | Delete
('_Go to File/Line', '<<goto-file-line>>'),
[73] Fix | Delete
('!_Debugger', '<<toggle-debugger>>'),
[74] Fix | Delete
('_Stack Viewer', '<<open-stack-viewer>>'),
[75] Fix | Delete
('!_Auto-open Stack Viewer', '<<toggle-jit-stack-viewer>>'),
[76] Fix | Delete
]),
[77] Fix | Delete
('options', [
[78] Fix | Delete
('Configure _IDLE', '<<open-config-dialog>>'),
[79] Fix | Delete
None,
[80] Fix | Delete
]),
[81] Fix | Delete
('help', [
[82] Fix | Delete
('_About IDLE', '<<about-idle>>'),
[83] Fix | Delete
None,
[84] Fix | Delete
('_IDLE Help', '<<help>>'),
[85] Fix | Delete
('Python _Docs', '<<python-docs>>'),
[86] Fix | Delete
]),
[87] Fix | Delete
]
[88] Fix | Delete
[89] Fix | Delete
default_keydefs = idleConf.GetCurrentKeySet()
[90] Fix | Delete
[91] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function