mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
rev. 2
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user