added checkmark_color and text_color_disabled to CTkCheckbox configure method #1586

This commit is contained in:
Tom Schimansky 2023-05-08 13:08:44 +02:00
parent 72157e8d26
commit c6b16ce815
2 changed files with 11 additions and 3 deletions

View File

@ -265,12 +265,20 @@ class CTkCheckBox(CTkBaseClass):
self._hover_color = self._check_color_type(kwargs.pop("hover_color")) self._hover_color = self._check_color_type(kwargs.pop("hover_color"))
require_redraw = True 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: if "text_color" in kwargs:
self._text_color = self._check_color_type(kwargs.pop("text_color")) self._text_color = self._check_color_type(kwargs.pop("text_color"))
require_redraw = True require_redraw = True
if "border_color" in kwargs: if "text_color_disabled" in kwargs:
self._border_color = self._check_color_type(kwargs.pop("border_color")) self._text_color_disabled = self._check_color_type(kwargs.pop("text_color_disabled"))
require_redraw = True require_redraw = True
if "hover" in kwargs: if "hover" in kwargs:

View File

@ -1,4 +1,4 @@
[project] [metadata]
name = customtkinter name = customtkinter
version = 5.1.3 version = 5.1.3
description = Create modern looking GUIs with Python description = Create modern looking GUIs with Python