From 6a43dfd9bff45a425894ad265b439923c4dab981 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Thu, 14 Jul 2022 13:57:02 +0200 Subject: [PATCH] added corner_radius to .configure() of CTkButton --- customtkinter/widgets/ctk_button.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/customtkinter/widgets/ctk_button.py b/customtkinter/widgets/ctk_button.py index 5e6867e..0e8cfb9 100644 --- a/customtkinter/widgets/ctk_button.py +++ b/customtkinter/widgets/ctk_button.py @@ -252,6 +252,10 @@ class CTkButton(CTkBaseClass): self.image = kwargs.pop("image") require_redraw = True + if "corner_radius" in kwargs: + self.corner_radius = kwargs.pop("corner_radius") + require_redraw = True + if "compound" in kwargs: self.compound = kwargs.pop("compound") require_redraw = True