1 # This file defines the menu contents and key bindings. Note that
2 # there is additional configuration information in the EditorWindow
3 # class (and subclasses): the menus are created there based on the
4 # menu_specs (class) variable, and menus not created are silently
5 # skipped by the code here. This makes it possible to define the
6 # Debug menu here, which is only present in the PythonShell window.
9 from configHandler
import idleConf
12 # underscore prefixes character to underscore
14 ('_New window', '<<open-new-window>>'),
15 ('_Open...', '<<open-window-from-file>>'),
16 ('Open _module...', '<<open-module>>'),
17 ('Class _browser', '<<open-class-browser>>'),
18 ('_Path browser', '<<open-path-browser>>'),
20 ('_Save', '<<save-window>>'),
21 ('Save _As...', '<<save-window-as-file>>'),
22 ('Save Co_py As...', '<<save-copy-of-window-as-file>>'),
24 ('_Print window', '<<print-window>>'),
26 ('_Close', '<<close-window>>'),
27 ('E_xit', '<<close-all-windows>>'),
30 ('_Undo', '<<undo>>'),
31 ('_Redo', '<<redo>>'),
34 ('_Copy', '<<copy>>'),
35 ('_Paste', '<<paste>>'),
36 ('Select _All', '<<select-all>>'),
38 ('_Find...', '<<find>>'),
39 ('Find a_gain', '<<find-again>>'),
40 ('Find _selection', '<<find-selection>>'),
41 ('Find in Files...', '<<find-in-files>>'),
42 ('R_eplace...', '<<replace>>'),
43 ('Go to _line', '<<goto-line>>'),
46 ('_Indent region', '<<indent-region>>'),
47 ('_Dedent region', '<<dedent-region>>'),
48 ('Comment _out region', '<<comment-region>>'),
49 ('U_ncomment region', '<<uncomment-region>>'),
50 ('Tabify region', '<<tabify-region>>'),
51 ('Untabify region', '<<untabify-region>>'),
52 ('Toggle tabs', '<<toggle-tabs>>'),
53 ('New indent width', '<<change-indentwidth>>'),
56 ('Python shell', '<<open-python-shell>>'),
59 ('_Go to file/line', '<<goto-file-line>>'),
60 ('_Stack viewer', '<<open-stack-viewer>>'),
61 ('!_Debugger', '<<toggle-debugger>>'),
62 ('!_Auto-open stack viewer', '<<toggle-jit-stack-viewer>>' ),
65 ('_Configure Idle...', '<<open-config-dialog>>'),
67 ('Revert to _Default Settings', '<<revert-all-settings>>'),
70 ('_IDLE Help...', '<<help>>'),
71 ('Python _Documentation...', '<<python-docs>>'),
72 ('_Advice...', '<<good-advice>>'),
73 ('View IDLE _Readme...', '<<view-readme>>'),
75 ('_About IDLE...', '<<about-idle>>'),
79 default_keydefs
= idleConf
.GetCurrentKeySet()