Title: tkinter events not working since Python 3.14 w/ Tk 9.0 · Issue #141237 · python/cpython · GitHub
Open Graph Title: tkinter events not working since Python 3.14 w/ Tk 9.0 · Issue #141237 · python/cpython
X Title: tkinter events not working since Python 3.14 w/ Tk 9.0 · Issue #141237 · python/cpython
Description: Bug report Bug description: Hey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I found that 3.13 works fine, but ultimately...
Open Graph Description: Bug report Bug description: Hey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I fo...
X Description: Bug report Bug description: Hey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I fo...
Opengraph URL: https://github.com/python/cpython/issues/141237
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tkinter events not working since Python 3.14 w/ Tk 9.0","articleBody":"# Bug report\n\n### Bug description:\n\nHey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I found that 3.13 works fine, but ultimately it stops working with 3.14, probably because of the upgrade to TCL/TK 9.0. \nEssentially it looks like the event bindings are broken, at least the handlers are not called when an event is generated. I couldn't find anything in the changelogs so far. Here's a minimal example that I can run on Fedora with 3.12 and 3.13, but not with 3.14 (taken from [here](https://pythonguides.com/python-tkinter-events/#5_event_generate):\n\n```python\nimport threading\nimport time\nimport queue\nfrom tkinter import *\n\nws = Tk()\nws.geometry(\"200x200\")\ncomque= queue.Queue()\n\ndef timeThread():\n prestime = 0\n while 1:\n comque.put(prestime)\n \n try:\n ws.event_generate('\u003c\u003cTimeChanged\u003e\u003e', when='tail')\n except TclError:\n break\n time.sleep(1)\n prestime += 1\n\nclcvar = IntVar()\nLabel(ws, textvariable=clcvar, width=9).pack(pady=10)\n\ndef timeChanged(event):\n clcvar.set(comque.get())\n\nws.bind('\u003c\u003cTimeChanged\u003e\u003e', timeChanged)\nThr=threading.Thread(target=timeThread)\nThr.start()\n\nws.mainloop()\n```\n\nThanks in advance!\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/der-eismann","@type":"Person","name":"der-eismann"},"datePublished":"2025-11-08T12:59:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/141237/cpython/issues/141237"}
| 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:404fcb63-2bfc-0f7f-0f9d-768a799a4f00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3E6:166D49:181609A:212BC77:696A9EDB |
| html-safe-nonce | e75ea7d260567465b57fd47026e5980a8630a424929dfa1831d9f8096c5c771c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0U2OjE2NkQ0OToxODE2MDlBOjIxMkJDNzc6Njk2QTlFREIiLCJ2aXNpdG9yX2lkIjoiODg3MzM3NzI1MzkxMTMzODcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6039d9940e7b4a763e193964fce21d9c00364b3316427c3cae6b4036118dafc9 |
| hovercard-subject-tag | issue:3603538763 |
| 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/141237/issue_layout |
| twitter:image | https://opengraph.githubassets.com/394c5f8baa11a4798025ce021f149528cd11f0098d3cdb424caeffd56667a278/python/cpython/issues/141237 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/394c5f8baa11a4798025ce021f149528cd11f0098d3cdb424caeffd56667a278/python/cpython/issues/141237 |
| og:image:alt | Bug report Bug description: Hey everyone, I tried updating an application that uses tkinter from Python 3.12 to 3.14, however it stopped working. After spending some time debugging and testing I fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | der-eismann |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| 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 | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width