Title: `tkinter.ttk.Progressbar` stubs are outdated for Tk 9.0 · Issue #16612 · python/typeshed · GitHub
Open Graph Title: `tkinter.ttk.Progressbar` stubs are outdated for Tk 9.0 · Issue #16612 · python/typeshed
X Title: `tkinter.ttk.Progressbar` stubs are outdated for Tk 9.0 · Issue #16612 · python/typeshed
Description: NOTE: The detail of the issue is raised and verified by human, but these text are drafted with the assistance of AI, since my English is poor. Description Tk 9.0 added native text display support to ttk::progressbar, but the current type...
Open Graph Description: NOTE: The detail of the issue is raised and verified by human, but these text are drafted with the assistance of AI, since my English is poor. Description Tk 9.0 added native text display support t...
X Description: NOTE: The detail of the issue is raised and verified by human, but these text are drafted with the assistance of AI, since my English is poor. Description Tk 9.0 added native text display support t...
Opengraph URL: https://github.com/python/typeshed/issues/16612
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`tkinter.ttk.Progressbar` stubs are outdated for Tk 9.0","articleBody":"NOTE: The detail of the issue is raised and verified by human, but these text are drafted with the assistance of AI, since my English is poor.\n\n### Description\n\nTk 9.0 added native text display support to `ttk::progressbar`, but the current\ntypeshed stub for `tkinter.ttk.Progressbar` does not reflect the Tk 9.0 option\nset.\n\nAccording to the Tk 9.0 `ttk_progressbar` manual page:\nhttps://www.tcl-lang.org/man/tcl9.0/TkCmd/ttk_progressbar.html\n\nTk 9.0 `ttk::progressbar` supports text-related options such as:\n\n- `-anchor`\n- `-font`\n- `-foreground`\n- `-justify`\n- `-text`\n- `-wraplength`\n\nThese options did not exist in Tk 8.6 and earlier. Tk 9.0 also removes support\nfor some options that were accepted by earlier versions, so the stub currently\ndoes not match either the new or the removed parts of the Tk 9.0 option set.\n\nThe relevant typeshed file is:\nhttps://github.com/python/typeshed/blob/main/stdlib/tkinter/ttk.pyi#L803-L836\n\n### Example\n\nWith Python 3.14.9 and Tk 9.0.4, the following is valid:\n\n```python\nfrom tkinter import ttk\n\nbar = ttk.Progressbar(\n text=\"Loading\",\n anchor=\"center\",\n font=(\"TkDefaultFont\", 10),\n) # make a progressbar with a text of \"Loading\" packed in the center of widget\n\nbar.configure(text=\"Done\")\n```\n\nHowever, the explicit `Progressbar.__init__` signature in typeshed does not\ninclude `text`, `anchor`, `font`, `foreground`, `justify`, or `wraplength`.\nDepending on the current fallback signature, this may be accepted through\n`**kw: Any`, but the options are still not modeled explicitly, so IDE\ncompletion and typed usage are outdated. If some options are no longer valid\nin Tk 9.0, the stub may also continue to advertise options that now fail at\nruntime.\n\n### Requested change\n\nPlease update `tkinter.ttk.Progressbar` to match the Tk 9.0 option set, at\nleast by adding explicit keyword-only parameters for the new text-related\noptions to `Progressbar.__init__` and, where appropriate, to\n`configure`/`config`.\n\nOne open question is version gating: `tkinter` can be built against different\nTk versions, so keying this only on `sys.version_info` may not always be\ncorrect. (See P.S. below)\n\n### Additional context\n\nI searched the existing typeshed issues and did not find a dedicated report for\n`ttk.Progressbar` being out of date with Tk 9.0. This seems to be a gap in the\ncurrent stubs.\n\nP.S. : AI also generates texts as shown below, but I can't verify the detail, since I didn't find any description of major version update on bundled tcl/tk in What’s new in Python 3.14: \n\nhttps://docs.python.org/3.14/whatsnew/3.14.html#tkinter\n\n```markdown\nSince Python 3.14, the official binary installers have begun shipping Tcl/Tk 9.0 (e.g. the macOS installer uses Tcl/Tk 9.0.3 as of Python 3.14.5, and Windows installers also bundle Tcl/Tk 9.0). This means the Tk 9.0 Progressbar options are now relevant to users of official CPython builds, not just those who manually build against Tk 9.\n```","author":{"url":"https://github.com/MeteorShower2004","@type":"Person","name":"MeteorShower2004"},"datePublished":"2026-10-25T07:16:28Z","url":"https://github.com/python/typeshed/issues/16612"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:45be633a-368d-1ec8-0dbc-1664b05216dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EB8:201B6C:2A2D20:37D4BD:6B02321B |
| html-safe-nonce | c394da9788de34f533c5108c6365f50e8e68da9020e6fb79ed86e65f4a99bed6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUI4OjIwMUI2QzoyQTJEMjA6MzdENEJEOjZCMDIzMjFCIiwidmlzaXRvcl9pZCI6IjY1NjY0OTQyMjI2ODg1OTY1MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5ec6cd26c27bf435daef525864e0180404ac5ac4c4d88b08ea15dfc158cf1f44 |
| hovercard-subject-tag | issue:6021928975 |
| 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/typeshed/16612/issue_layout |
| twitter:image | https://opengraph.githubassets.com/809f03c8790281c8a4c20d9b0032e98ad3e79b2c00fab743b015f8de793dfd45/python/typeshed/issues/16612 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/809f03c8790281c8a4c20d9b0032e98ad3e79b2c00fab743b015f8de793dfd45/python/typeshed/issues/16612 |
| og:image:alt | NOTE: The detail of the issue is raised and verified by human, but these text are drafted with the assistance of AI, since my English is poor. Description Tk 9.0 added native text display support t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MeteorShower2004 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width