From 0da9a17b55c8eec9e9745fc5769c2e78d4c4f68d Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Sun, 22 May 2022 21:05:46 +0200 Subject: [PATCH] added border_color, border_width to configure of CTkFrame --- customtkinter/widgets/ctk_frame.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/customtkinter/widgets/ctk_frame.py b/customtkinter/widgets/ctk_frame.py index fccbcce..7f726e6 100644 --- a/customtkinter/widgets/ctk_frame.py +++ b/customtkinter/widgets/ctk_frame.py @@ -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: