Skip to content

turtle.write() causes flickering when the tracer is turned off. #91212

Closed

Description

@relent95
mannequin
BPO 47056
Nosy @terryjreedy, @relent95
Files
  • test_anim_write.py: A sample script that reproduces the bug.
  • 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 = None
    closed_at = None
    created_at = <Date 2022-03-18.09:27:33.522>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'turtle.write() causes flickering when the tracer is turned off.'
    updated_at = <Date 2022-03-21.07:02:30.149>
    user = 'https://github.com/relent95'

    bugs.python.org fields:

    activity = <Date 2022-03-21.07:02:30.149>
    actor = 'relent95'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-03-18.09:27:33.522>
    creator = 'relent95'
    dependencies = []
    files = ['50690']
    hgrepos = []
    issue_num = 47056
    keywords = []
    message_count = 3.0
    messages = ['415475', '415531', '415669']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'relent95']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue47056'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    1. relent95 commented on Mar 18, 2022

      relent95mannequin
      MannequinAuthor

      When implementing an animation with turtle, usually the tracer is turned off via turtle.tracer(0, 0) and turtle.update() is called manually.

      When the tracer is off, most of drawing functions skips update() calls on the underlying Canvas. But turtle.write() does not do that.
      (See the implementation of TurtleScreenBase._write().)

      This causes flickering, as can be seen when you run the attached script. (Press space key to hide/show texts.)

    2. added
      3.8 (EOL)
      stdlib
      type-bug
      on Mar 18, 2022
    3. terryjreedy commented on Mar 19, 2022

      @terryjreedy
      Member

      On Win10, running 3.11.0a5+ from command line, upper ABC and boxes flicker when strings are displayed. (When run with from IDLE editor, there is no flicker except sometimes when moving mouse over or off title bar buttons.) (3.8 only gets security fixes.)

    4. added
      3.9 (EOL)
      3.10 (EOL)
      3.11
      and removed
      3.8 (EOL)
      on Mar 19, 2022
    5. relent95 commented on Mar 21, 2022

      relent95mannequin
      MannequinAuthor

      I tested on Ubuntu 20.04 with the following Python versions.

          3.8.2(repository version)
          3.11.0a5(compiled from the official tarball)

      Both cases cause flickering.

    6. transferred this issue fromon Apr 10, 2022
    7. added a commit that references this issue on Jul 22, 2022
    8. relent95 commented on Aug 23, 2022

      @relent95
      ContributorAuthor

      Anyone can review the above PR?

    9. added a commit that references this issue on Sep 29, 2022
    10. added a commit that references this issue on Sep 29, 2022
    11. added 3 commits that reference this issue on Sep 29, 2022
    12. gpshead commented on Sep 29, 2022

      @gpshead
      Member

      thanks!

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)3.113.9 (EOL)stdlibtype-bug

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions