mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Tim Peters strikes again:
Ho ho ho -- that's trickier than it sounded! The colorizer is working with "line.col" strings instead of Text marks, and the absolute coordinates of the point of interest can change across the self.update call (voice of baffled experience, when two quick backspaces no longer fooled it, but a backspace followed by a quick ENTER did <wink>). Anyway, the attached appears to do the trick. CPU usage goes way up when typing quickly into a long triple-quoted string, but the latency is fine for me (a relatively fast typist on a relatively slow machine). Most of the changes here are left over from reducing the # of vrbl names to help me reason about the logic better; I hope the code is a *little* easier to
This commit is contained in:
parent
c020e2d36c
commit
26c2cb4bd1
3 changed files with 160 additions and 44 deletions
|
|
@ -407,7 +407,7 @@ def short_title(self):
|
|||
|
||||
def begin(self):
|
||||
self.resetoutput()
|
||||
self.write("Python %s on %s\n%s\nIDLE %s\n" %
|
||||
self.write("Python %s on %s\n%s\nIDLE %s -- press F1 for help\n" %
|
||||
(sys.version, sys.platform, sys.copyright,
|
||||
idlever.IDLE_VERSION))
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue