mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
add border_remain to configure and cget
This commit is contained in:
parent
28edb17931
commit
588ef0f3c9
@ -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._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._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._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)
|
self._checkmark_color = ThemeManager.theme["CTkCheckbox"]["checkmark_color"] if checkmark_color is None else self._check_color_type(checkmark_color)
|
||||||
|
|
||||||
# shape
|
# shape
|
||||||
@ -279,6 +280,9 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
if "hover" in kwargs:
|
if "hover" in kwargs:
|
||||||
self._hover = kwargs.pop("hover")
|
self._hover = kwargs.pop("hover")
|
||||||
|
|
||||||
|
if "border_remain" in kwargs:
|
||||||
|
self._border_remain = kwargs.pop("border_remain")
|
||||||
|
|
||||||
if "command" in kwargs:
|
if "command" in kwargs:
|
||||||
self._command = kwargs.pop("command")
|
self._command = kwargs.pop("command")
|
||||||
|
|
||||||
@ -332,6 +336,8 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
return self._state
|
return self._state
|
||||||
elif attribute_name == "hover":
|
elif attribute_name == "hover":
|
||||||
return self._hover
|
return self._hover
|
||||||
|
elif attribute_name == "border_remain":
|
||||||
|
return self._border_remain
|
||||||
elif attribute_name == "onvalue":
|
elif attribute_name == "onvalue":
|
||||||
return self._onvalue
|
return self._onvalue
|
||||||
elif attribute_name == "offvalue":
|
elif attribute_name == "offvalue":
|
||||||
|
Loading…
Reference in New Issue
Block a user