mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
rev. 2
This commit is contained in:
@ -264,7 +264,7 @@ class CTkScrollbar(CTkBaseClass):
|
||||
def get(self):
|
||||
return self._start_value, self._end_value
|
||||
|
||||
def bind(self, sequence=None, command: Callable[..., None] | None = None, add: Literal["+", True] = True):
|
||||
def bind(self, sequence=None, command: Callable[..., None] | None = None, add: Literal["+"] | bool = True):
|
||||
""" called on the tkinter.Canvas """
|
||||
if not (add == "+" or add is True):
|
||||
raise ValueError("'add' argument can only be '+' or True to preserve internal callbacks")
|
||||
|
Reference in New Issue
Block a user