FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-78335: Improve tkinter widget docstrings by ZackerySpytz · Pull Request #21118 · python/cpython · GitHub

Repository navigation

gh-78335: Improve tkinter widget docstrings - #21118

Closed
ZackerySpytz wants to merge 2 commits into
python:mainfrom
ZackerySpytz:bpo-34154-tkinter-widget-docstrings
Closed

ZackerySpytz wants to merge 2 commits into
python:mainfrom
ZackerySpytz:bpo-34154-tkinter-widget-docstrings

Conversation

ZackerySpytz commented Jun 24, 2020 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Co-Authored-By: Noah Haasis <haasis_noah@yahoo.de>

Copy link
Copy Markdown
Contributor Author

This PR addresses the issues that were found in the old PR.

terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I checked the lists against https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm. I assumed 'bg' and 'fg' are valid even when not listed there.
Serhiy, do you want to separately review, or should I merge after corrections.

Comment thread Lib/tkinter/__init__.py
fg, font, foreground, highlightbackground, highlightcolor,
highlightthickness, insertbackground, insertborderwidth,
insertofftime, insertontime, insertwidth, invalidcommand,
invcmd, justify, readonlybackground, relief, selectbackground,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The tk docs do not list 'invcmd' but do list 'vcmd'. So I will presume without conrary evidence that this is either missing from the tk doc or is added by tkinter.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

invcmd is an alias of invalidcommand and vcmd is an alias of validatecommand.

Comment thread Lib/tkinter/__init__.py
activebackground, activeforeground, anchor,
background, bitmap, borderwidth, cursor,
disabledforeground, font, foreground,
background, bitmap, borderwidth, compound,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

tk docs include bg, even though they do not for many of widgets above.

Suggested change
background, bitmap, borderwidth, compound,
background, bg, bitmap, borderwidth, compound,

Comment thread Lib/tkinter/__init__.py
insertborderwidth, insertofftime,
insertontime, insertwidth, padx, pady,
relief, selectbackground,
background, blockcursor, borderwidth,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The list of standard options was correct. The 6 additions
blockcursor, endline (spelled correctly), inactiveselectbackground, insertunfocused, startline, tabstyle,
should be moved to WIDGET-SPECIFIC OPTIONS

Comment thread Lib/tkinter/__init__.py

background, borderwidth, cursor, height,
orient, relief, width
orient, proxybackground, proxyborderwidth,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

height and width were misplaced as standard. They and the 3 new proxy... options should be moved down.

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

erlend-aasland changed the title bpo-34154: Improve tkinter widget docstrings gh-78335: Improve tkinter widget docstrings Jan 5, 2024
erlend-aasland added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 5, 2024
serhiy-storchaka added needs backport to 3.13 only security fixes and removed needs backport to 3.11 only security fixes labels May 9, 2024
tomasr8 removed the needs backport to 3.12 only security fixes label Apr 10, 2025
serhiy-storchaka added the needs backport to 3.14 bugs and security fixes label May 8, 2025

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

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

github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2026
serhiy-storchaka added the needs backport to 3.15 bugs and security fixes label May 30, 2026
github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jun 4, 2026

Copy link
Copy Markdown
Member

Thanks @ZackerySpytz and @noahhaasis.

The tkinter docstring option lists were since completed in gh-78335 by #152485; the current docstrings already cover everything this PR adds, with correct spellings and Tk 9.1+ annotations. Closing as superseded.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL