mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Added missed calls of splitlist().
This commit is contained in:
parent
078b8a81b1
commit
8381f90ee0
3 changed files with 7 additions and 9 deletions
|
@ -81,7 +81,8 @@ class Font:
|
|||
if exists:
|
||||
self.delete_font = False
|
||||
# confirm font exists
|
||||
if self.name not in root.tk.call("font", "names"):
|
||||
if self.name not in root.tk.splitlist(
|
||||
root.tk.call("font", "names")):
|
||||
raise tkinter._tkinter.TclError(
|
||||
"named font %s does not already exist" % (self.name,))
|
||||
# if font config info supplied, apply it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue