https://github.com/python/cpython/commit/9a0395396f54ae0715682135e4d1f989bea31850 commit: 9a0395396f54ae0715682135e4d1f989bea31850 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-07-08T12:07:12Z summary:
[3.13] gh-86017: Document displayof for Font.actual() and clarify Font.copy() (GH-153288) (GH-153331) Explain the displayof argument of tkinter.font.Font.actual() and describe what Font.copy() returns, including for a wrapped font description. (cherry picked from commit fa5eafd19c3d395b4498e21b4e1b8faac2ebdb0a) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> files: M Doc/library/tkinter.font.rst diff --git a/Doc/library/tkinter.font.rst b/Doc/library/tkinter.font.rst index 68586458116bdf0..42ce6d43b6bb5a3 100644 --- a/Doc/library/tkinter.font.rst +++ b/Doc/library/tkinter.font.rst @@ -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) @@ -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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
