mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-35728: Add root parameter to tkinter.font.nametofont() (GH-23885)
This commit is contained in:
parent
675c97eb6c
commit
36a779e64c
4 changed files with 23 additions and 4 deletions
|
@ -17,10 +17,10 @@ BOLD = "bold"
|
|||
ITALIC = "italic"
|
||||
|
||||
|
||||
def nametofont(name):
|
||||
def nametofont(name, root=None):
|
||||
"""Given the name of a tk named font, returns a Font representation.
|
||||
"""
|
||||
return Font(name=name, exists=True)
|
||||
return Font(name=name, exists=True, root=root)
|
||||
|
||||
|
||||
class Font:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue