| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks Tal for adding the label! |
Sorry, something went wrong.
There was a problem hiding this comment.
These are excellent improvements to the docs!
I have a few suggestions.
Sorry, something went wrong.
|
|
||
| If *option* is specified, the value of just that attribute is returned; | ||
| if it is omitted, the return value is a dictionary of all the attributes | ||
| and their values. See above for a list of the possible attributes. [1]_ |
There was a problem hiding this comment.
This says "above" but the reference is to a separate page. Is "above" referencing the constructor's docs? If so, let's add a link to it.
Sorry, something went wrong.
There was a problem hiding this comment.
The "above" is referring to "additional keyword options". The link is to give reasonable credit to the man page as the entirety of the actual docs is just a modified version of the content found there (though I'm open to a more clear way of showing this).
Sorry, something went wrong.
| .. method:: copy() | ||
|
|
||
| Return new instance of the current font. | ||
| Return new instance of the current font with a different *name*. |
There was a problem hiding this comment.
Nice!
Sorry, something went wrong.
| .. [1] Tk 8.6 font man page | ||
| https://www.tcl.tk/man/tcl8.6/TkCmd/font.htm#M5 |
There was a problem hiding this comment.
This will be very useful to many who wouldn't know where to find this otherwise!
Sorry, something went wrong.
|
Note that Docs/library/tkinter.font.rst only exists since 3.9. |
Sorry, something went wrong.
|
The Tk docs are released under a permissive license that allows free use, but require attribution. See full quote of the license below. (source: the license.terms file in the tk-8.6.10.tar.gz source archive, which includes the documentation in the doc/ directory.) Would you be able to re-word that part in your own words, so we can avoid having to include the full attribution notice?
|
Sorry, something went wrong.
|
Oh... I'll work on it! |
Sorry, something went wrong.
|
Thanks for the rewrite, @E-Paine, looking good! Perhaps let's separate the last sentence about displayof into a new paragraph, and mention what type of object it is: Is it a string? What does it reference? Can we give an example? |
Sorry, something went wrong.
|
@taleinat did you mean to repeat what you said earlier in the review about separating the last sentence into its own paragraph? I believe this is already resolved but can look at it again if you want. |
Sorry, something went wrong.
Yes, it was intentional. I should have mentioned that I was repeating it. The current text still doesn't explain what "displayof" refers to and what type(s) it supports. |
Sorry, something went wrong.
|
@taleinat I am not quite sure I understand. I had already said it accepted any tkinter widget but have attempted to clarify in the latest commit. |
Sorry, something went wrong.
|
Unless someone beats me, I intend to review, fix the merge conflict (easy context change), and likely merge. I opened a draft issue on IDLE Issues under Configure to not forget forever: "Use font.actual to compare user font to defaults". |
Sorry, something went wrong.
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
Thanks, and to @taleinat for the review! The actual() docs were reworked under gh-143990 (#152025) — they now cover the platform differences and the dict-vs-single return, more concisely (and without the man-page attribution question). Closing as superseded. The two remaining bits — the displayof explanation and the copy() clarification — I'll fold into a separate doc change. Much appreciated! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Given that Serhiy does not see the reason for a equal method and Tal was unaware of the actual method, I instead propose a major improvement to the actual docs. The docs are currently very brief and do not offer any explanation on what the kwargs are for. I have completely removed the existing doc and instead added a modified version of the tk man's description.
With it being so heavy based on the man page, I assume we need to give credit but would appreciate if someone could double check I have done so correctly.
EDIT:
I do not intend to add a news entry as I deem this a fairly trivial change, though obviously cannot add the skip-news tag myself (so will just ignore the bedevere/news failure).
https://bugs.python.org/issue41851