Skip to content

gh-96910: IDLE - make autocomplete winnconfig handler only trigger once #28332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

taleinat
Copy link
Contributor

@taleinat taleinat commented Sep 14, 2021

Before, this was only enforced on the Windows platform, where multiple calls would result in errors. But logically it is the correct behavior, and it allows simplifying the code as well.

This also includes a minor change to correctly use platform.system() == "Windows" rather than .startswith("Windows").

Note that this requires the fix in PR GH-28328 to work properly on Linux.

Also, note that this has no effect on the position of the completion window while scrolling the editor window, which isn't updated anyways as far as I can tell.

… once

Before, this was only enforced on the Windows
platform, where multiple calls would result in
errors. But logically it is the correct behavior,
and it allows simplifying the code as well.

Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Oct 16, 2021
@terryjreedy
Copy link
Member

terryjreedy commented Jan 24, 2022

PR #28328 for bpo-45193 was closed and a simpler fix applied to 3.11 and 3.10, with a fix for 3.9 pending. This should work for 3.11 and .10. I am thinking of backporting a simplified version to 3.9 and not worry that it is not perfect.

Closing and opening to see current results.

In msg401802 of bpo-45193, I said "I would rather make a more extensive change than to patch a badly written function for at least the fourth time. I will open an issue for [this] PR and explain later." If I cannot soon remember what I meant, I should apply this after more test and review.

@terryjreedy terryjreedy reopened this Jan 24, 2022
@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Aug 12, 2022
@terryjreedy terryjreedy changed the title IDLE: make the auto-complete window's winnconfig handler only trigger once gh-96910: IDLE - make autocomplete winnconfig handler only trigger once Sep 18, 2022
@terryjreedy terryjreedy self-assigned this Sep 18, 2022
@python-cla-bot
Copy link

python-cla-bot bot commented Apr 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

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

Successfully merging this pull request may close these issues.

5 participants