]> granicus.if.org Git - python/commitdiff
Bindings.py
authorKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 00:50:44 +0000 (00:50 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 00:50:44 +0000 (00:50 +0000)
    AutoIndent merged 21Jul
    cleanup and remove references to config backend 06Aug

Lib/idlelib/Bindings.py

index 06e215e62b1f95c8bb7c2c0cc8af379bb63de83a..2d5d7bbf0a7ccaca59b89257e4c86e585282ad3d 100644 (file)
@@ -5,16 +5,8 @@
 # skipped by the code here.  This makes it possible to define the
 # Debug menu here, which is only present in the PythonShell window.
 
-# changes by dscherer@cmu.edu:
-#   - Python shell moved to 'Run' menu
-#   - "Help" renamed to "IDLE Help" to distinguish from Python help.
-#     The distinction between the environment and the language is dim
-#     or nonexistent in a novice's mind.
-#   - Silly advice added
-
 import sys
 import string
-#from keydefs import *
 from configHandler import idleConf
 
 menudefs = [
@@ -51,6 +43,16 @@ menudefs = [
    ('R_eplace...', '<<replace>>'),
    ('Go to _line', '<<goto-line>>'),
   ]),
+('format', [
+    ('_Indent region', '<<indent-region>>'),
+    ('_Dedent region', '<<dedent-region>>'),
+    ('Comment _out region', '<<comment-region>>'),
+    ('U_ncomment region', '<<uncomment-region>>'),
+    ('Tabify region', '<<tabify-region>>'),
+    ('Untabify region', '<<untabify-region>>'),
+    ('Toggle tabs', '<<toggle-tabs>>'),
+    ('New indent width', '<<change-indentwidth>>'),
+]),
  ('run',[
    ('Python shell', '<<open-python-shell>>'),
  ]),