mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
1. Clarify "tab/space" Error Dialog and "Tab Width" Dialog associated with
the Untabify command. 2. Corrected "tab/space" Error Dialog to show correct menu for Untabify. Patch 1196980 Jeff Shute M EditorWindow.py M NEWS.txt M ScriptBinding.py
This commit is contained in:
parent
df506ea98b
commit
ca7329c9c1
3 changed files with 12 additions and 9 deletions
|
@ -1271,7 +1271,7 @@ class EditorWindow(object):
|
||||||
def _asktabwidth(self):
|
def _asktabwidth(self):
|
||||||
return self.askinteger(
|
return self.askinteger(
|
||||||
"Tab width",
|
"Tab width",
|
||||||
"Spaces per tab? (2-16)",
|
"Columns per tab? (2-16)",
|
||||||
parent=self.text,
|
parent=self.text,
|
||||||
initialvalue=self.indentwidth,
|
initialvalue=self.indentwidth,
|
||||||
minvalue=2,
|
minvalue=2,
|
||||||
|
|
|
@ -3,6 +3,12 @@ What's New in IDLE 1.2a0?
|
||||||
|
|
||||||
*Release date: XX-XXX-2005*
|
*Release date: XX-XXX-2005*
|
||||||
|
|
||||||
|
- Clarify "tab/space" Error Dialog and "Tab Width" Dialog associated with
|
||||||
|
the Untabify command.
|
||||||
|
|
||||||
|
- Corrected "tab/space" Error Dialog to show correct menu for Untabify.
|
||||||
|
Patch 1196980 Jeff Shute
|
||||||
|
|
||||||
- New files are colorized by default, and colorizing is removed when
|
- New files are colorized by default, and colorizing is removed when
|
||||||
saving as non-Python files. Patch 1196895 Jeff Shute
|
saving as non-Python files. Patch 1196895 Jeff Shute
|
||||||
Closes Python Bugs 775012 and 800432, partial fix IDLEfork 763524
|
Closes Python Bugs 775012 and 800432, partial fix IDLEfork 763524
|
||||||
|
|
|
@ -31,16 +31,13 @@ IDENTCHARS = string.ascii_letters + string.digits + "_"
|
||||||
|
|
||||||
indent_message = """Error: Inconsistent indentation detected!
|
indent_message = """Error: Inconsistent indentation detected!
|
||||||
|
|
||||||
This means that either:
|
1) Your indentation is outright incorrect (easy to fix), OR
|
||||||
|
|
||||||
1) your indentation is outright incorrect (easy to fix), or
|
2) Your indentation mixes tabs and spaces.
|
||||||
|
|
||||||
2) your indentation mixes tabs and spaces in a way that depends on \
|
|
||||||
how many spaces a tab is worth.
|
|
||||||
|
|
||||||
To fix case 2, change all tabs to spaces by using Select All followed \
|
|
||||||
by Untabify Region (both in the Edit menu)."""
|
|
||||||
|
|
||||||
|
To fix case 2, change all tabs to spaces by using Edit->Select All followed \
|
||||||
|
by Format->Untabify Region and specify the number of columns used by each tab.
|
||||||
|
"""
|
||||||
|
|
||||||
class ScriptBinding:
|
class ScriptBinding:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue