Allow str for tkinter.Scrollbar.set() (#10926)

This commit is contained in:
Aditya Paul
2023-10-25 23:18:08 +05:30
committed by GitHub
parent 78fba20110
commit 2ce9dcd5fb

View File

@@ -2888,7 +2888,7 @@ class Scrollbar(Widget):
def fraction(self, x: int, y: int) -> float: ...
def identify(self, x: int, y: int) -> Literal["arrow1", "arrow2", "slider", "trough1", "trough2", ""]: ...
def get(self) -> tuple[float, float, float, float] | tuple[float, float]: ...
def set(self, first: float, last: float) -> None: ...
def set(self, first: float | str, last: float | str) -> None: ...
_TextIndex: TypeAlias = _tkinter.Tcl_Obj | str | float | Misc