⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.152
Server IP:
13.200.189.69
Server:
Linux ip-172-31-46-210 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
snap
/
core
/
17247
/
usr
/
lib
/
python3.5
/
idlelib
/
Edit File: Bindings.py
"""Define the menu contents, hotkeys, and event bindings. 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 in the code here. This makes it possible, for example, to define a Debug menu which is only present in the PythonShell window, and a Format menu which is only present in the Editor windows. """ from importlib.util import find_spec from idlelib.configHandler import idleConf # Warning: menudefs is altered in macosxSupport.overrideRootMenu() # after it is determined that an OS X Aqua Tk is in use, # which cannot be done until after Tk() is first called. # Do not alter the 'file', 'options', or 'help' cascades here # without altering overrideRootMenu() as well. # TODO: Make this more robust menudefs = [ # underscore prefixes character to underscore ('file', [ ('_New File', '<
>'), ('_Open...', '<
>'), ('Open _Module...', '<
>'), ('Class _Browser', '<
>'), ('_Path Browser', '<
>'), None, ('_Save', '<
>'), ('Save _As...', '<
>'), ('Save Cop_y As...', '<
>'), None, ('Prin_t 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', '<
>'), ]), ('shell', [ ('_View Last Restart', '<
>'), ('_Restart Shell', '<
>'), ]), ('debug', [ ('_Go to File/Line', '<
>'), ('!_Debugger', '<
>'), ('_Stack Viewer', '<
>'), ('!_Auto-open Stack Viewer', '<
>'), ]), ('options', [ ('Configure _IDLE', '<
>'), None, ]), ('help', [ ('_About IDLE', '<
>'), None, ('_IDLE Help', '<
>'), ('Python _Docs', '<
>'), ]), ] if find_spec('turtledemo'): menudefs[-1][1].append(('Turtle Demo', '<
>')) default_keydefs = idleConf.GetCurrentKeySet()
Simpan