From 588ef0f3c98bf24f5773e1767261fd2a0a61d0b9 Mon Sep 17 00:00:00 2001 From: M4hbod <74229780+M4hbod@users.noreply.github.com> Date: Tue, 10 Jan 2023 17:47:09 +0330 Subject: [PATCH] add border_remain to configure and cget --- customtkinter/windows/widgets/ctk_checkbox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customtkinter/windows/widgets/ctk_checkbox.py b/customtkinter/windows/widgets/ctk_checkbox.py index 4c511ba..1ddac43 100644 --- a/customtkinter/windows/widgets/ctk_checkbox.py +++ b/customtkinter/windows/widgets/ctk_checkbox.py @@ -55,6 +55,7 @@ class CTkCheckBox(CTkBaseClass): self._fg_color = ThemeManager.theme["CTkCheckbox"]["fg_color"] if fg_color is None else self._check_color_type(fg_color) self._hover_color = ThemeManager.theme["CTkCheckbox"]["hover_color"] if hover_color is None else self._check_color_type(hover_color) self._border_color = ThemeManager.theme["CTkCheckbox"]["border_color"] if border_color is None else self._check_color_type(border_color) + self._checkmark_color = ThemeManager.theme["CTkCheckbox"]["checkmark_color"] if checkmark_color is None else self._check_color_type(checkmark_color) # shape @@ -278,6 +279,9 @@ class CTkCheckBox(CTkBaseClass): if "hover" in kwargs: self._hover = kwargs.pop("hover") + + if "border_remain" in kwargs: + self._border_remain = kwargs.pop("border_remain") if "command" in kwargs: self._command = kwargs.pop("command") @@ -332,6 +336,8 @@ class CTkCheckBox(CTkBaseClass): return self._state elif attribute_name == "hover": return self._hover + elif attribute_name == "border_remain": + return self._border_remain elif attribute_name == "onvalue": return self._onvalue elif attribute_name == "offvalue":