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.
13 # underscore prefixes character to underscore
15 ('_New window', '<<open-new-window>>'),
16 ('_Open...', '<<open-window-from-file>>'),
17 ('Open _module...', '<<open-module>>'),
18 ('Class _browser', '<<open-class-browser>>'),
19 ('Python shell', '<<open-python-shell>>'),
21 ('_Save', '<<save-window>>'),
22 ('Save _As...', '<<save-window-as-file>>'),
23 ('Save Co_py As...', '<<save-copy-of-window-as-file>>'),
25 ('_Close', '<<close-window>>'),
26 ('E_xit', '<<close-all-windows>>'),
29 ('_Undo', '<<undo>>'),
30 ('_Redo', '<<redo>>'),
33 ('_Copy', '<<Copy>>'),
34 ('_Paste', '<<Paste>>'),
35 ('Select _All', '<<select-all>>'),
38 ('Run module', '<<run-module>>'),
39 ('Run script', '<<run-script>>'),
40 ('New shell', '<<new-shell>>'),
43 ('_Go to file/line', '<<goto-file-line>>'),
44 ('_Stack viewer', '<<open-stack-viewer>>'),
45 ('!_Debugger', '<<toggle-debugger>>'),
46 ('!_Auto-open stack viewer', '<<toggle-jit-stack-viewer>>' ),
49 ('_Help...', '<<help>>'),
51 ('_About IDLE...', '<<about-idle>>'),
55 if sys
.platform
== 'win32':
56 default_keydefs
= windows_keydefs
58 default_keydefs
= unix_keydefs