mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
allow multiple style strings in font tuple #759
This commit is contained in:
@@ -82,8 +82,8 @@ class CTkScalingBaseClass:
|
||||
return font
|
||||
elif len(font) == 2:
|
||||
return font[0], -abs(round(font[1] * self.__widget_scaling))
|
||||
elif len(font) == 3:
|
||||
return font[0], -abs(round(font[1] * self.__widget_scaling)), font[2]
|
||||
elif 3 <= len(font) <= 6:
|
||||
return font[0], -abs(round(font[1] * self.__widget_scaling)), font[2:]
|
||||
else:
|
||||
raise ValueError(f"Can not scale font {font}. font needs to be tuple of len 1, 2 or 3")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user