fixed scaling update of CTkLabel

This commit is contained in:
Tom Schimansky
2022-05-22 19:56:18 +02:00
parent eeeb85ec0d
commit a1cd4abddd
3 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import tkinter
from .ctk_canvas import CTkCanvas
from ..theme_manager import ThemeManager
from ..settings import Settings
from ..draw_engine import DrawEngine
from .widget_base_class import CTkBaseClass
@ -68,6 +67,8 @@ class CTkLabel(CTkBaseClass):
self.text_label.configure(font=self.apply_font_scaling(self.text_font))
self.text_label.grid(row=0, column=0, padx=self.apply_widget_scaling(self.corner_radius))
self.draw()
def draw(self, no_color_updates=False):
requires_recoloring = self.draw_engine.draw_rounded_rect_with_border(self.apply_widget_scaling(self.current_width),
self.apply_widget_scaling(self.current_height),