From c6b16ce815825924511ed35028c0f297c93bc874 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Mon, 8 May 2023 13:08:44 +0200 Subject: [PATCH] added checkmark_color and text_color_disabled to CTkCheckbox configure method #1586 --- customtkinter/windows/widgets/ctk_checkbox.py | 12 ++++++++++-- setup.cfg | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/customtkinter/windows/widgets/ctk_checkbox.py b/customtkinter/windows/widgets/ctk_checkbox.py index 3d9b496..aedd005 100644 --- a/customtkinter/windows/widgets/ctk_checkbox.py +++ b/customtkinter/windows/widgets/ctk_checkbox.py @@ -265,12 +265,20 @@ class CTkCheckBox(CTkBaseClass): self._hover_color = self._check_color_type(kwargs.pop("hover_color")) require_redraw = True + if "border_color" in kwargs: + self._border_color = self._check_color_type(kwargs.pop("border_color")) + require_redraw = True + + if "checkmark_color" in kwargs: + self._checkmark_color = self._check_color_type(kwargs.pop("checkmark_color")) + require_redraw = True + if "text_color" in kwargs: self._text_color = self._check_color_type(kwargs.pop("text_color")) require_redraw = True - if "border_color" in kwargs: - self._border_color = self._check_color_type(kwargs.pop("border_color")) + if "text_color_disabled" in kwargs: + self._text_color_disabled = self._check_color_type(kwargs.pop("text_color_disabled")) require_redraw = True if "hover" in kwargs: diff --git a/setup.cfg b/setup.cfg index 1048246..0582b6e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -[project] +[metadata] name = customtkinter version = 5.1.3 description = Create modern looking GUIs with Python