Changed: argument type for xPos and yPos in tkinter to accept numbers (#5334)

This commit is contained in:
Vyom Pathak
2021-05-04 17:47:34 +05:30
committed by GitHub
parent 4a45b1d1b4
commit b35ae73c5f

View File

@@ -1288,7 +1288,9 @@ class Canvas(Widget, XView, YView):
lower: Any
def move(self, *args): ...
if sys.version_info >= (3, 8):
def moveto(self, tagOrId: Union[str, _CanvasItemId], x: str = ..., y: str = ...) -> None: ...
def moveto(
self, tagOrId: Union[str, _CanvasItemId], x: Union[Literal[""], float] = ..., y: Union[Literal[""], float] = ...
) -> None: ...
def postscript(self, cnf=..., **kw): ...
def tag_raise(self, *args): ...
lift: Any