summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2005-01-19 00:22:59 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2005-01-19 00:22:59 (GMT)
commit6af44986029c84c4c5df62a64c60a6ed978a3693 (patch)
tree2c47318c67e6868b475147069c390e41e918f5e6 /Lib/idlelib/PyShell.py
parent75eabd294441266a77b837b83f34e975d7192d2e (diff)
downloadcpython-6af44986029c84c4c5df62a64c60a6ed978a3693.zip
cpython-6af44986029c84c4c5df62a64c60a6ed978a3693.tar.gz
cpython-6af44986029c84c4c5df62a64c60a6ed978a3693.tar.bz2
1. Polish tabbing code.
2. Restore use of set_indentation_params(), was dead code since Autoindent.py was merged into EditorWindow.py. 3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars and set in EditorWindow.__init__() 4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1 explicitly (config() is eliminated). 5. Add Tabnanny check when Module is Run/F5, not just when Checked. 6. Discourage using an indent width other than 8 when using tabs to indent Python code. M EditorWindow.py M NEWS.txt M PyShell.py M ScriptBinding.py
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 2e55755..fecbf1a 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -795,7 +795,11 @@ class PyShell(OutputWindow):
import __builtin__
__builtin__.quit = __builtin__.exit = "To exit, type Ctrl-D."
#
- self.config(usetabs=1, indentwidth=8, context_use_ps1=1)
+## self.config(usetabs=1, indentwidth=8, context_use_ps1=1)
+ self.usetabs = True
+ # indentwidth must be 8 when using tabs. See note in EditorWindow:
+ self.indentwidth = 8
+ self.context_use_ps1 = True
#
text = self.text
text.configure(wrap="char")