Skip to content

Commit f0767f0

Browse files
committed
Clarify 'displayof' option
1 parent b30dbcc commit f0767f0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/library/tkinter.font.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ The different font weights and slants are:
4848
.. method:: actual(option=None, displayof=None)
4949

5050
Returns the actual value for attributes when the given font is used on
51-
*displayof*. Due to some differences between operating systems (such as
51+
the widget given by *displayof*. *displayof* accepts any tkinter widget
52+
and, if omitted, will default to the main window (in most circumstances,
53+
this will be your ``Tk`` instance).
54+
55+
Due to some differences between operating systems (such as
5256
pointsizes and the availability of font families), some values returned
5357
by this method may vary from those given as kwargs or similar method
5458
(and retrieved by :meth:`Font.cget`).
5559

56-
*displayof* accepts any tkinter widget and, if omitted, will default to
57-
the main window.
58-
5960
If *option* is specified, the value of just that attribute is returned.
6061
If it is omitted or ``None``, the returned value is a dictionary of all
6162
the attributes and their values. See above for a list of acceptable

0 commit comments

Comments
 (0)