mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
This commit is contained in:
parent
faeeab7ed7
commit
53f2b5fab2
2 changed files with 7 additions and 5 deletions
|
|
@ -1277,13 +1277,13 @@ class EditorWindow(object):
|
||||||
"Toggle tabs",
|
"Toggle tabs",
|
||||||
"Turn tabs " + ("on", "off")[self.usetabs] +
|
"Turn tabs " + ("on", "off")[self.usetabs] +
|
||||||
"?\nIndent width " +
|
"?\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):
|
parent=self.text):
|
||||||
self.usetabs = not self.usetabs
|
self.usetabs = not self.usetabs
|
||||||
# Try to prevent mixed tabs/spaces.
|
# Try to prevent inconsistent indentation.
|
||||||
# User must reset indent width manually after using tabs
|
# User must change indent width manually after using tabs.
|
||||||
# if he insists on getting into trouble.
|
self.indentwidth = 8
|
||||||
self.indentwidth = 8
|
|
||||||
return "break"
|
return "break"
|
||||||
|
|
||||||
# XXX this isn't bound to anything -- see tabwidth comments
|
# XXX this isn't bound to anything -- see tabwidth comments
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
|
||||||
|
|
||||||
*Release date: XX-AUG-2006*
|
*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
|
- When used w/o subprocess, all exceptions were preceded by an error
|
||||||
message claiming they were IDLE internal errors (since 1.2a1).
|
message claiming they were IDLE internal errors (since 1.2a1).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue