Skip to content

IDLE: simplify, optimize, and clean up code context #81711

Closed

Description

@terryjreedy
BPO 37530
Nosy @terryjreedy, @taleinat, @csabella, @miss-islington
PRs
  • bpo-37530: simplify, optimize and clean up IDLE code context #14675
  • [3.8] bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675) #14807
  • [3.7] bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675) #14808
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/terryjreedy'
    closed_at = <Date 2019-07-17.08:59:43.129>
    created_at = <Date 2019-07-09.17:44:47.305>
    labels = ['3.8', 'expert-IDLE', 'type-bug', '3.7', '3.9']
    title = 'IDLE: simplify, optimize, and clean up code context'
    updated_at = <Date 2019-07-17.08:59:43.128>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2019-07-17.08:59:43.128>
    actor = 'taleinat'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2019-07-17.08:59:43.129>
    closer = 'taleinat'
    components = ['IDLE']
    creation = <Date 2019-07-09.17:44:47.305>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37530
    keywords = ['patch']
    message_count = 5.0
    messages = ['347568', '348000', '348049', '348051', '348052']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'taleinat', 'cheryl.sabella', 'miss-islington']
    pr_nums = ['14675', '14807', '14808']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37530'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. terryjreedy commented on Jul 9, 2019

      @terryjreedy
      MemberAuthor

      Issue for Tal's PR 14675, dependency of bpo-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.
      1. 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.

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

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

      4. Fix a bare except:.

    2. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      on Jul 9, 2019
    3. self-assigned this
      on Jul 9, 2019
    4. added
      type-bug
      on Jul 9, 2019
    5. terryjreedy commented on Jul 16, 2019

      @terryjreedy
      MemberAuthor

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

    6. taleinat commented on Jul 17, 2019

      @taleinat
      Contributor

      New changeset 7036e1d by Tal Einat in branch 'master':
      bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
      7036e1d

    7. miss-islington commented on Jul 17, 2019

      @miss-islington
      Contributor

      New changeset bb79ab8 by Miss Islington (bot) in branch '3.7':
      bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
      bb79ab8

    8. miss-islington commented on Jul 17, 2019

      @miss-islington
      Contributor

      New changeset 6cf7c45 by Miss Islington (bot) in branch '3.8':
      bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
      6cf7c45

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)3.8 (EOL)3.9 (EOL)topic-IDLEtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions