mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Whitespace Normalization
This commit is contained in:
parent
9532298c82
commit
6655e4bc27
23 changed files with 306 additions and 322 deletions
|
@ -99,7 +99,7 @@ class ScriptBinding:
|
|||
self.errorbox("Syntax error",
|
||||
"There's an error in your program:\n" + msg)
|
||||
return False
|
||||
|
||||
|
||||
def colorize_syntax_error(self, msg, lineno, offset):
|
||||
text = self.editwin.text
|
||||
pos = "0.0 + %d lines + %d chars" % (lineno-1, offset-1)
|
||||
|
@ -112,7 +112,7 @@ class ScriptBinding:
|
|||
else:
|
||||
text.mark_set("insert", pos + "+1c")
|
||||
text.see(pos)
|
||||
|
||||
|
||||
def run_script_event(self, event):
|
||||
"Check syntax, if ok run the script in the shell top level"
|
||||
filename = self.getfilename()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue