CTkSlider typing hint: from_ and to can be float

This commit is contained in:
Bruno Cabral 2023-08-01 12:13:12 -07:00 committed by GitHub
parent d719950f80
commit 19360bd123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,8 @@ class CTkSlider(CTkBaseClass):
button_color: Optional[Union[str, Tuple[str, str]]] = None,
button_hover_color: Optional[Union[str, Tuple[str, str]]] = None,
from_: int = 0,
to: int = 1,
from_: int | float = 0,
to: int | float = 1,
state: str = "normal",
number_of_steps: Union[int, None] = None,
hover: bool = True,