progress on test_ttk_frames.py

This commit is contained in:
Tom Schimansky
2022-04-09 19:37:07 +02:00
parent 7da9c73115
commit cdbf2382ef
6 changed files with 136 additions and 18 deletions

View File

@ -83,7 +83,7 @@ if sys.platform.startswith("win"):
pathbuf = create_unicode_buffer(fontpath)
AddFontResourceEx = windll.gdi32.AddFontResourceExW
else:
raise TypeError('fontpath must be of type str or unicode')
raise TypeError('fontpath must be of type bytes or str')
flags = (FR_PRIVATE if private else 0) | (FR_NOT_ENUM if not enumerable else 0)
num_fonts_added = AddFontResourceEx(byref(pathbuf), flags, 0)