[Python-checkins] r51183 - python/trunk/Lib/idlelib/EditorWindow.py python/trunk/Lib/idlelib/NEWS.txt

kurt.kaiser python-checkins at python.org
Wed Aug 9 22:34:47 CEST 2006


Author: kurt.kaiser
Date: Wed Aug 9 22:34:46 2006
New Revision: 51183
Modified:
 python/trunk/Lib/idlelib/EditorWindow.py
 python/trunk/Lib/idlelib/NEWS.txt
Log:
ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
Modified: python/trunk/Lib/idlelib/EditorWindow.py
==============================================================================
--- python/trunk/Lib/idlelib/EditorWindow.py	(original)
+++ python/trunk/Lib/idlelib/EditorWindow.py	Wed Aug 9 22:34:46 2006
@@ -1277,13 +1277,13 @@
 "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
Modified: python/trunk/Lib/idlelib/NEWS.txt
==============================================================================
--- python/trunk/Lib/idlelib/NEWS.txt	(original)
+++ python/trunk/Lib/idlelib/NEWS.txt	Wed Aug 9 22:34:46 2006
@@ -3,6 +3,8 @@
 
 *Release date: XX-AUG-2006*
 
+- ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
+
 - When used w/o subprocess, all exceptions were preceded by an error
 message claiming they were IDLE internal errors (since 1.2a1).
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /