Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b35ae73

Browse files
authored
Changed: argument type for xPos and yPos in tkinter to accept numbers (#5334)
1 parent 4a45b1d commit b35ae73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stdlib/tkinter/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,9 @@ class Canvas(Widget, XView, YView):
12881288
lower: Any
12891289
def move(self, *args): ...
12901290
if sys.version_info >= (3, 8):
1291-
def moveto(self, tagOrId: Union[str, _CanvasItemId], x: str = ..., y: str = ...) -> None: ...
1291+
def moveto(
1292+
self, tagOrId: Union[str, _CanvasItemId], x: Union[Literal[""], float] = ..., y: Union[Literal[""], float] = ...
1293+
) -> None: ...
12921294
def postscript(self, cnf=..., **kw): ...
12931295
def tag_raise(self, *args): ...
12941296
lift: Any

0 commit comments

Comments
 (0)