Added missed calls of splitlist().

This commit is contained in:
Serhiy Storchaka 2014-06-01 11:21:55 +03:00
parent 078b8a81b1
commit 8381f90ee0
3 changed files with 7 additions and 9 deletions

View file

@ -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