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 ('_Path browser', '<<open-path-browser>>'),
20 ('Python shell', '<<open-python-shell>>'),
22 ('_Save', '<<save-window>>'),
23 ('Save _As...', '<<save-window-as-file>>'),
24 ('Save Co_py As...', '<<save-copy-of-window-as-file>>'),
26 ('_Print window', '<<print-window>>'),
28 ('_Close', '<<close-window>>'),
29 ('E_xit', '<<close-all-windows>>'),
32 ('_Undo', '<<undo>>'),
33 ('_Redo', '<<redo>>'),
36 ('_Copy', '<<Copy>>'),
37 ('_Paste', '<<Paste>>'),
38 ('Select _All', '<<select-all>>'),
41 ('_Go to file/line', '<<goto-file-line>>'),
42 ('_Stack viewer', '<<open-stack-viewer>>'),
43 ('!_Debugger', '<<toggle-debugger>>'),
44 ('!_Auto-open stack viewer', '<<toggle-jit-stack-viewer>>' ),
47 ('_Help...', '<<help>>'),
48 ('Python _Documentation...', '<<python-docs>>'),
50 ('_About IDLE...', '<<about-idle>>'),
54 if sys
.platform
== 'win32':
55 default_keydefs
= windows_keydefs
57 default_keydefs
= unix_keydefs