added border_color, border_width to configure of CTkFrame

This commit is contained in:
Tom Schimansky 2022-05-22 21:05:46 +02:00
parent 8cafed1b06
commit 0da9a17b55

View File

@ -115,11 +115,21 @@ class CTkFrame(CTkBaseClass):
del kwargs["bg_color"]
if "border_color" in kwargs:
self.border_color = kwargs["border_color"]
require_redraw = True
del kwargs["border_color"]
if "corner_radius" in kwargs:
self.corner_radius = kwargs["corner_radius"]
require_redraw = True
del kwargs["corner_radius"]
if "border_width" in kwargs:
self.border_width = kwargs["border_width"]
require_redraw = True
del kwargs["border_width"]
super().configure(*args, **kwargs)
if require_redraw: