You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE: simplify, optimize, and clean up code context #81711
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.
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.
PR 14030 for bpo-17535 (line numbers) also has code for 1. I want to merge this first, and fix-up the other.
Changing context font at the same time as the text font, instead of up to 1 second later, eliminates a visual glitch and is a user-visible improvement. Ditto for highlight changes, although the situation is more complicated due to text recoloring (a separate issue).
Activity
terryjreedy commentedon Jul 9, 2019
Issue for Tal's PR 14675, dependency of bpo-33610.
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.
Fix a bare except:.
terryjreedy commentedon Jul 16, 2019
PR 14030 for bpo-17535 (line numbers) also has code for 1. I want to merge this first, and fix-up the other.
Changing context font at the same time as the text font, instead of up to 1 second later, eliminates a visual glitch and is a user-visible improvement. Ditto for highlight changes, although the situation is more complicated due to text recoloring (a separate issue).
taleinat commentedon Jul 17, 2019
New changeset 7036e1d by Tal Einat in branch 'master':
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
7036e1d
miss-islington commentedon Jul 17, 2019
New changeset bb79ab8 by Miss Islington (bot) in branch '3.7':
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
bb79ab8
miss-islington commentedon Jul 17, 2019
New changeset 6cf7c45 by Miss Islington (bot) in branch '3.8':
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
6cf7c45