summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/outwin.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-17 08:44:18 (GMT)
committerGitHub <noreply@github.com>2019-07-17 08:44:18 (GMT)
commitbb79ab84c258566bcba89a87eb549fbc8643f882 (patch)
tree777ca7d0ec97ab67c5bfeff8eaa34449e4826ec2 /Lib/idlelib/outwin.py
parentba3c89f42e3935924a4a9a3278cee994f5bb7aee (diff)
downloadcpython-bb79ab84c258566bcba89a87eb549fbc8643f882.zip
cpython-bb79ab84c258566bcba89a87eb549fbc8643f882.tar.gz
cpython-bb79ab84c258566bcba89a87eb549fbc8643f882.tar.bz2
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
* Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows. * Remove configuration update Tk event fired every second, by having the editor window ask its code context widget to update when necessary, i.e. upon font or highlighting updates. * When code context isn't being shown, avoid having a Tk event fired every 100ms to check whether the code context needs to be updated. * Use the editor window's getlineno() method where applicable. * Update font of the code context widget before the main text widget (cherry picked from commit 7036e1de3a87d36c7ef41b8a2b44ed6fc4d34be2) Co-authored-by: Tal Einat <taleinat@gmail.com>
Diffstat (limited to 'Lib/idlelib/outwin.py')
-rw-r--r--Lib/idlelib/outwin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/outwin.py b/Lib/idlelib/outwin.py
index ecc53ef..38c59bd 100644
--- a/Lib/idlelib/outwin.py
+++ b/Lib/idlelib/outwin.py
@@ -74,6 +74,8 @@ class OutputWindow(EditorWindow):
("Go to file/line", "<<goto-file-line>>", None),
]
+ allow_codecontext = False
+
def __init__(self, *args):
EditorWindow.__init__(self, *args)
self.text.bind("<<goto-file-line>>", self.goto_file_line)