# This file defines the menu contents and key bindings. Note that # there is additional configuration information in the EditorWindow # class (and subclasses): the menus are created there based on the # menu_specs (class) variable, and menus not created are silently # skipped by the code here. This makes it possible to define the # Debug menu here, which is only present in the PythonShell window. import sys import string from keydefs import * menudefs = [ # underscore prefixes character to underscore ('file', [ ('_New window', '<>'), ('_Open...', '<>'), ('Open _module...', '<>'), ('Class _browser', '<>'), ('Python shell', '<>'), None, ('_Save', '<>'), ('Save _As...', '<>'), ('Save Co_py As...', '<>'), None, ('_Close', '<>'), ('E_xit', '<>'), ]), ('edit', [ ('_Undo', '<>'), ('_Redo', '<>'), None, ('Cu_t', '<>'), ('_Copy', '<>'), ('_Paste', '<>'), ('Select _All', '<>'), ]), ('script', [ ('Run module', '<>'), ('Run script', '<>'), ('New shell', '<>'), ]), ('debug', [ ('_Go to file/line', '<>'), ('_Stack viewer', '<>'), ('!_Debugger', '<>'), ('!_Auto-open stack viewer', '<>' ), ]), ('help', [ ('_Help...', '<>'), None, ('_About IDLE...', '<>'), ]), ] if sys.platform == 'win32': default_keydefs = windows_keydefs else: default_keydefs = unix_keydefs