allow multiple style strings in font tuple #759

This commit is contained in:
Tom Schimansky
2022-12-06 18:29:09 +01:00
parent 6a3fa7fa29
commit 868b2a2f42
3 changed files with 4 additions and 5 deletions

View File

@ -55,7 +55,6 @@ class CTkFont(Font):
self._size_configure_callback_list.remove(callback)
def create_scaled_tuple(self, font_scaling: float) -> Tuple[str, int, str]:
""" return scaled tuple representation of font in the form (family: str, size: int, style: str)"""
return self._family, round(-abs(self._size) * font_scaling), self._tuple_style_string