# 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 from configHandler import idleConf menudefs = [ # underscore prefixes character to underscore ('file', [ ('_New window', '<>'), ('_Open...', '<>'), ('Open _module...', '<>'), ('Class _browser', '<>'), ('_Path browser', '<>'), None, ('_Save', '<>'), ('Save _As...', '<>'), ('Save Co_py As...', '<>'), None, ('_Print window', '<>'), None, ('_Close', '<>'), ('E_xit', '<>'), ]), ('edit', [ ('_Undo', '<>'), ('_Redo', '<>'), None, ('Cu_t', '<>'), ('_Copy', '<>'), ('_Paste', '<>'), ('Select _All', '<>'), None, ('_Find...', '<>'), ('Find a_gain', '<>'), ('Find _selection', '<>'), ('Find in Files...', '<>'), ('R_eplace...', '<>'), ('Go to _line', '<>'), ]), ('format', [ ('_Indent region', '<>'), ('_Dedent region', '<>'), ('Comment _out region', '<>'), ('U_ncomment region', '<>'), ('Tabify region', '<>'), ('Untabify region', '<>'), ('Toggle tabs', '<>'), ('New indent width', '<>'), ]), ('run',[ ('Python shell', '<>'), ]), ('debug', [ ('_Go to file/line', '<>'), ('_Stack viewer', '<>'), ('!_Debugger', '<>'), ('!_Auto-open stack viewer', '<>' ), ]), ('settings', [ ('_Configure Idle...', '<>'), None, ('Revert to _Default Settings', '<>'), ]), ('help', [ ('_IDLE Help...', '<>'), ('Python _Documentation...', '<>'), ('_Advice...', '<>'), ('View IDLE _Readme...', '<>'), None, ('_About IDLE...', '<>'), ]), ] default_keydefs = idleConf.GetCurrentKeySet() del sys