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

[3.14] gh-86017: Document displayof for Font.actual() and clarify Font.copy() (GH-153288) by miss-islington · Pull Request #153330 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 7 additions & 1 deletion Doc/library/tkinter.font.rst
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
Expand Up @@ -54,6 +54,8 @@ The different font weights and slants are:
requested ones because of platform limitations.
With no *option*, return a dictionary of all the attributes; if *option*
is given, return the value of that single attribute.
The attributes are resolved on the display of the *displayof* widget,
or the main application window if it is not specified.

.. method:: cget(option)

Expand All @@ -71,7 +73,11 @@ The different font weights and slants are:

.. method:: copy()

Return new instance of the current font.
Return a distinct copy of the current font:
a new named font with the same attributes but a different name,
which can be reconfigured independently of the original.
If the current font wraps a font description,
the copy is instead a named font with its resolved attributes.

.. method:: measure(text, displayof=None)

Expand Down
Loading

Back | FazBrowse Home | New Git URL