This commit is contained in:
demberto
2023-04-18 18:50:20 +05:30
parent a9b44c180e
commit 79cd10ddfd
13 changed files with 53 additions and 33 deletions

View File

@ -4,6 +4,11 @@ import sys
import tkinter
from typing import Any, Callable
if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal
from .core_rendering import CTkCanvas, DrawEngine
from .core_widget_classes import CTkBaseClass
from .font import CTkFont
@ -36,7 +41,7 @@ class CTkCheckBox(CTkBaseClass):
text: str = "CTkCheckBox",
font: tuple[Any, ...] | CTkFont | None = None,
textvariable: tkinter.Variable | None = None,
state: str = tkinter.NORMAL,
state: Literal["normal", "disabled", "readonly"] = "normal",
hover: bool = True,
command: Callable[[], None] | None = None,
onvalue: int | str = 1,