Title: tkinter window fails to appear approx 10% of the time on MacOS 12.3+ · Issue #95769 · python/cpython · GitHub
Open Graph Title: tkinter window fails to appear approx 10% of the time on MacOS 12.3+ · Issue #95769 · python/cpython
X Title: tkinter window fails to appear approx 10% of the time on MacOS 12.3+ · Issue #95769 · python/cpython
Description: Bug report 1 in 10 or 15 windows fails to appear when running tkinter on MacOS version 12.3+ and tkinter 8.6.12 using this simplified program: import tkinter as tk hmr = tk.Tk() hmr.attributes('-alpha', 0) hmr.withdraw() root = tk.Toplev...
Open Graph Description: Bug report 1 in 10 or 15 windows fails to appear when running tkinter on MacOS version 12.3+ and tkinter 8.6.12 using this simplified program: import tkinter as tk hmr = tk.Tk() hmr.attributes('-al...
X Description: Bug report 1 in 10 or 15 windows fails to appear when running tkinter on MacOS version 12.3+ and tkinter 8.6.12 using this simplified program: import tkinter as tk hmr = tk.Tk() hmr.attributes('...
Opengraph URL: https://github.com/python/cpython/issues/95769
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tkinter window fails to appear approx 10% of the time on MacOS 12.3+","articleBody":"# Bug report\r\n\r\n1 in 10 or 15 windows fails to appear when running tkinter on MacOS version 12.3+ and tkinter 8.6.12 using this simplified program:\r\n\r\n```python\r\nimport tkinter as tk\r\n\r\nhmr = tk.Tk()\r\nhmr.attributes('-alpha', 0)\r\nhmr.withdraw()\r\n\r\nroot = tk.Toplevel(class_='toplevel')\r\nroot.attributes('-alpha', 0)\r\n\r\nroot.title('My Test Title')\r\n\r\nframe = tk.Frame(root)\r\nframe.pack(side=tk.TOP, anchor='nw', padx=0, pady=0, expand=False, fill=tk.NONE)\r\na = tk.Label(frame, text =\"Hello World\")\r\na.pack()\r\n\r\nroot.update_idletasks()\r\nroot.geometry(\"+600+600\")\r\nroot.update_idletasks()\r\nroot.attributes('-alpha', 1)\r\n\r\nroot.mainloop()\r\n\r\n```\r\n\r\n\r\n# Your environment\r\n\r\nMacOS 12.3.1\r\nPython 3.10.4\r\ntkinter 8.6.12\r\n\r\n# Background\r\n\r\nThis problem was first reported to the PySimpleGUI project in mid-May. We've been working to find work-arounds and to narrow down the problem as much as possible. Because tkinter 8.6.11 isn't available pre-built on Python.org for 64 bit Macs, it's not been possible to test to see if 8.6.12 is the origin of the problem. While it is an intermittent problem, it's thankfully frequent enough to make duplication possible by running the program several times manually.\r\n\r\nI assume it's an 8.6.12 problem as no one has reported the problem on 8.6.11 on any platform. Numerous MacOS users have been running into the problem.\r\n\r\nThe example code supplied is the most basic, shortest number of steps we've been able to create that perform the same operations that PySimpleGUI uses to build and move the window.\r\n\r\nPySimpleGUI's default location for user windows is the center of the screen. So that users do not see the window \"jump\" from the starting location, the alpha channel is set to zero when the window is created and remains 0 while it's built and moved. Once moved into the final position, the Alpha channel is set to 1 and thus the window appears in the correct location without a visible jump.\r\n\r\n","author":{"url":"https://github.com/PySimpleGUI","@type":"Person","name":"PySimpleGUI"},"datePublished":"2022-08-07T20:45:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/95769/cpython/issues/95769"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0140e65-8f5f-a0c2-b400-db696c2da3bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B04:3F60C6:6FAAD78:9CFEF73:6A5070D3 |
| html-safe-nonce | 0393f07e7fac1d1836d99a762e8d31df3e6e9c300d01ba2b08f1617c7ba8a503 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjA0OjNGNjBDNjo2RkFBRDc4OjlDRkVGNzM6NkE1MDcwRDMiLCJ2aXNpdG9yX2lkIjoiODAwMjEyNTExNjI1MDAyNjE5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d704e8cfd3abc3ed292d40ea313b4280d012bf02f83ee6727f8259bbcd14170 |
| hovercard-subject-tag | issue:1331118773 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/95769/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6cf83093bb76709ab1d1161aeb590841b3476a8b87fa59b9adb38d25ed4f6391/python/cpython/issues/95769 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6cf83093bb76709ab1d1161aeb590841b3476a8b87fa59b9adb38d25ed4f6391/python/cpython/issues/95769 |
| og:image:alt | Bug report 1 in 10 or 15 windows fails to appear when running tkinter on MacOS version 12.3+ and tkinter 8.6.12 using this simplified program: import tkinter as tk hmr = tk.Tk() hmr.attributes('-al... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PySimpleGUI |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width