Skip to content

Commit 82019b6

Browse files
committed
First iteration of improved Font.actual docs
1 parent d67de0a commit 82019b6

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Doc/library/tkinter.font.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ The different font weights and slants are:
4747
4848
.. method:: actual(option=None, displayof=None)
4949

50-
Return the attributes of the font.
50+
Returns information about the actual attributes that are obtained when
51+
the font is used on *displayof*; the actual attributes obtained may
52+
differ from those given (and retrieved by :meth:`Font.cget`) due to
53+
platform-dependent limitations, such as the availability of font
54+
families and pointsizes. If *displayof* is omitted, it defaults to the
55+
main window.
56+
57+
If *option* is specified, value of just that attribute is returned; if
58+
it is omitted, the return value is a dictionary of all the attributes
59+
and their values. See above for a list of the possible attributes.
5160

5261
.. method:: cget(option)
5362

@@ -93,4 +102,4 @@ The different font weights and slants are:
93102

94103
.. function:: nametofont(name)
95104

96-
Return a :class:`Font` representation of a tk named font.
105+
Return a :class:`Font` representation of a tk named font.

0 commit comments

Comments
 (0)