[New-bugs-announce] [issue37530] IDLE: simplify, optimize, and clean up code context

Terry J. Reedy report at bugs.python.org
Tue Jul 9 13:44:47 EDT 2019


New submission from Terry J. Reedy <tjreedy at udel.edu>:

Issue for Tal's PR 14675, dependency of #33610.

1. Only create CodeContext instances for "real" editors windows, but not e.g. shell or output windows.

- Previously, were created but never activated because menu item deactivated.  This is even better.

2. 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.

3. 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.

4. Use the editor window's getlineno() method where applicable.

5. Fix a bare except:.

----------
assignee: terry.reedy
components: IDLE
messages: 347568
nosy: cheryl.sabella, taleinat, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: IDLE: simplify, optimize, and clean up code context
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37530>
_______________________________________


More information about the New-bugs-announce mailing list