-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143754: Use neutral terminology in tkinter documentation #143779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
VanshAgarwal24036
wants to merge
1
commit into
python:main
Choose a base branch
from
VanshAgarwal24036:gh-143754-tkinter-neutral-terms
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6
−6
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -176,13 +176,13 @@ | |||||
|
|
||||||
| .. attribute:: master | ||||||
|
|
||||||
| The widget object that contains this widget. For :class:`Tk`, the | ||||||
| *master* is :const:`None` because it is the main window. The terms | ||||||
| *master* and *parent* are similar and sometimes used interchangeably | ||||||
| as argument names; however, calling :meth:`winfo_parent` returns a | ||||||
| string of the widget name whereas :attr:`master` returns the object. | ||||||
| *parent*/*child* reflects the tree-like relationship while | ||||||
| *master*/*slave* reflects the container structure. | ||||||
| *container*/*child widget* reflects the geometry management structure. | ||||||
|
|
||||||
| .. attribute:: children | ||||||
|
|
||||||
|
|
@@ -644,8 +644,8 @@ | |||||
| relationship specification - *above*, *to the left of*, *filling*, etc - and | ||||||
| works everything out to determine the exact placement coordinates for you. | ||||||
|
|
||||||
| The size of any *master* widget is determined by the size of the "slave widgets" | ||||||
| inside. The packer is used to control where slave widgets appear inside the | ||||||
| The size of any *parent* widget is determined by the size of the "child widgets" | ||||||
| inside. The packer is used to control where child widgets appear inside the | ||||||
| master into which they are packed. You can pack widgets into frames, and frames | ||||||
| into other frames, in order to achieve the kind of layout you desire. | ||||||
| Additionally, the arrangement is dynamically adjusted to accommodate incremental | ||||||
|
|
@@ -673,7 +673,7 @@ | |||||
| see the man pages and page 183 of John Ousterhout's book. | ||||||
|
|
||||||
| anchor | ||||||
| Anchor type. Denotes where the packer is to place each slave in its parcel. | ||||||
| Anchor type. Denotes where the packer is to place each child widget in its parcel. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| expand | ||||||
| Boolean, ``0`` or ``1``. | ||||||
|
|
@@ -682,10 +682,10 @@ | |||||
| Legal values: ``'x'``, ``'y'``, ``'both'``, ``'none'``. | ||||||
|
|
||||||
| ipadx and ipady | ||||||
| A distance - designating internal padding on each side of the slave widget. | ||||||
| A distance - designating internal padding on each side of the child widget. | ||||||
|
|
||||||
| padx and pady | ||||||
| A distance - designating external padding on each side of the slave widget. | ||||||
| A distance - designating external padding on each side of the child widget. | ||||||
|
|
||||||
| side | ||||||
| Legal values are: ``'left'``, ``'right'``, ``'top'``, ``'bottom'``. | ||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above 'Check warning on line 179' message seems misleading because it refers to'":meth:
winfo_parent" on line 182. I believe the message is true in that Misc.winfo_parent is not documented and not indexed, so no link is possible. The name 'winfo_parent' is simple rendered in fixed-pitch type, like the other anotated words, but with no link. The annotation should just be removed or replace with something only meant to change the font, without linking anywhere.Leave the word 'master' alone here. This paragraph does not clarify much, and is misleading; changing 'container' to 'geometry manager' makes it worse. A non-root's master is specified when it is created, in the class call, before any geometry management. So 'parent' is a proper conceptual synonym. The default container for a widget is its master, but it can be placed in any container, and, I believe, more than one. (Just as a object can be in more than one collection.) But fixing the paragraph is beyond the scope of this issue/PR. As i will explain on the issue, 'slave' is specific to geometry, so even replacing that with 'widget' makes the last sentence less true.