summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-08-09 20:34:46 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2006-08-09 20:34:46 (GMT)
commit53f2b5fab2f525342dbb69f6f2d5eed978c7883f (patch)
treec73f58e72c03d891f45c3a31418838f8ee777b09 /Lib/idlelib/EditorWindow.py
parentfaeeab7ed76060d96743d0c63ab7416d46b82f6e (diff)
downloadcpython-53f2b5fab2f525342dbb69f6f2d5eed978c7883f.zip
cpython-53f2b5fab2f525342dbb69f6f2d5eed978c7883f.tar.gz
cpython-53f2b5fab2f525342dbb69f6f2d5eed978c7883f.tar.bz2
ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 560e5e7..6b8ab63 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -1277,13 +1277,13 @@ class EditorWindow(object):
"Toggle tabs",
"Turn tabs " + ("on", "off")[self.usetabs] +
"?\nIndent width " +
- ("will be", "remains at")[self.usetabs] + " 8.",
+ ("will be", "remains at")[self.usetabs] + " 8." +
+ "\n Note: a tab is always 8 columns",
parent=self.text):
self.usetabs = not self.usetabs
- # Try to prevent mixed tabs/spaces.
- # User must reset indent width manually after using tabs
- # if he insists on getting into trouble.
- self.indentwidth = 8
+ # Try to prevent inconsistent indentation.
+ # User must change indent width manually after using tabs.
+ self.indentwidth = 8
return "break"
# XXX this isn't bound to anything -- see tabwidth comments