René's URL Explorer Experiment


Title: bpo-15786: IDLE: Fix behavior when mouse click at autocompletetion window by mlouielu · Pull Request #1811 · python/cpython · GitHub

Open Graph Title: bpo-15786: IDLE: Fix behavior when mouse click at autocompletetion window by mlouielu · Pull Request #1811 · python/cpython

X Title: bpo-15786: IDLE: Fix behavior when mouse click at autocompletetion window by mlouielu · Pull Request #1811 · python/cpython

Description: This fix behavior on Windows, MacOS and Linux platform. The root problem is caused by non-check for hide_event. When user click at acw, root widget will get focusOut event, then trigger hide_window to close the acw. It should only be hide when acw is active, and acw didn't get focus at FocusOut event (this event bind on acw and widget), or when widget get a ButtonPress event (this event only bind on the widget). MacOS will freeze after double click on acw, this because when doubleclick_event try to hide window at the end, hide_window function destroy the whole acw, but tkinter didn't get focus back to widget. So it should set focus on widget first, then destroy acw. Windows can not response to double click event because the misbehavior of Configure event, when acw is showed, tkinter will call winconfig event multiple time, that cause tkinter can not response to double click event. When on Windows, it will unbind Configure event when first time get into winconfig_event to prevent multiple calls of this event. Previous PR: #1517

Open Graph Description: This fix behavior on Windows, MacOS and Linux platform. The root problem is caused by non-check for hide_event. When user click at acw, root widget will get focusOut event, then trigger hide_window...

X Description: This fix behavior on Windows, MacOS and Linux platform. The root problem is caused by non-check for hide_event. When user click at acw, root widget will get focusOut event, then trigger hide_window...

Opengraph URL: https://github.com/python/cpython/pull/1811

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f3c31904-4a41-b153-01bf-1588d7d3956f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD70:50919:8D11BFA:C4B1D16:6A502B8B
html-safe-nonce6f6e55bbbba2addedaae85b2c6fddd8015a192074baf8115a2588a7a3262dde6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDcwOjUwOTE5OjhEMTFCRkE6QzRCMUQxNjo2QTUwMkI4QiIsInZpc2l0b3JfaWQiOiI0MjczMjQ2Njc3NTA1MTU4MDI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacde1b8e7f23830defd3ec2908444e4fd3982aad3d87e8e4a1dbcfeeedbf06eb9e
hovercard-subject-tagpull_request:122406996
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/1811/files
twitter:imagehttps://avatars.githubusercontent.com/u/28770408?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28770408?s=400&v=4
og:image:altThis fix behavior on Windows, MacOS and Linux platform. The root problem is caused by non-check for hide_event. When user click at acw, root widget will get focusOut event, then trigger hide_window...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/1811/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F1811%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F1811%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/1811/files
Reloadhttps://github.com/python/cpython/pull/1811/files
Reloadhttps://github.com/python/cpython/pull/1811/files
Please reload this pagehttps://github.com/python/cpython/pull/1811/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/1811/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terryjreedyhttps://github.com/terryjreedy
python:masterhttps://github.com/python/cpython/tree/master
mlouielu:bpo-15786-acwhttps://github.com/mlouielu/cpython/tree/bpo-15786-acw
Conversation 1 https://github.com/python/cpython/pull/1811
Commits 4 https://github.com/python/cpython/pull/1811/commits
Checks 0 https://github.com/python/cpython/pull/1811/checks
Files changed https://github.com/python/cpython/pull/1811/files
Please reload this pagehttps://github.com/python/cpython/pull/1811/files
bpo-15786: IDLE: Fix behavior when mouse click at autocompletetion window https://github.com/python/cpython/pull/1811/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/1811/files
9a3c3c3 bpo-15786: IDLE: Fix behavior when mouse click at autocompletetion wi… mlouielu May 9, 2017 https://github.com/python/cpython/pull/1811/commits/9a3c3c309a637a5dfe9428697e825438e2ce6463
ff505e9 Merge remote-tracking branch 'origin/master' into pr1811 terryjreedy May 30, 2017 https://github.com/python/cpython/pull/1811/commits/ff505e98ebca8ffe834ca8861afc45274503a49f
0f98409 Fix Windows platform click and disappear mlouielu May 30, 2017 https://github.com/python/cpython/pull/1811/commits/0f98409d3af4ca57211bf2065c43902a87edc087
3351bde Return when autocompletewindow is None mlouielu May 31, 2017 https://github.com/python/cpython/pull/1811/commits/3351bdec451b06e4f3bf7fe689f1549b53617289
Clear filters https://github.com/python/cpython/pull/1811/files
Please reload this pagehttps://github.com/python/cpython/pull/1811/files
Please reload this pagehttps://github.com/python/cpython/pull/1811/files
Lib/idlelib/autocomplete_w.pyhttps://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
View file https://github.com/mlouielu/cpython/blob/3351bdec451b06e4f3bf7fe689f1549b53617289/Lib/idlelib/autocomplete_w.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/1811/{{ revealButtonHref }}
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com/python/cpython/pull/1811/files#diff-47c0c6384815d553d6f04ade18702e16f72ac84a848d32c622b594e807bf5475
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.