fix tkinter.Canvas tags option (#5866)

This commit is contained in:
Akuli
2021-08-07 16:53:46 +03:00
committed by GitHub
parent 25e9733389
commit 9301131976

View File

@@ -1135,7 +1135,7 @@ class Canvas(Widget, XView, YView):
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
stipple: _Bitmap = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
width: _ScreenUnits = ...,
) -> _CanvasItemId: ...
def create_oval(
@@ -1166,7 +1166,7 @@ class Canvas(Widget, XView, YView):
outlinestipple: _Bitmap = ...,
state: Literal["normal", "active", "disabled"] = ...,
stipple: _Bitmap = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
width: _ScreenUnits = ...,
) -> _CanvasItemId: ...
def create_polygon(
@@ -1200,7 +1200,7 @@ class Canvas(Widget, XView, YView):
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
stipple: _Bitmap = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
width: _ScreenUnits = ...,
) -> _CanvasItemId: ...
def create_rectangle(
@@ -1231,7 +1231,7 @@ class Canvas(Widget, XView, YView):
outlinestipple: _Bitmap = ...,
state: Literal["normal", "active", "disabled"] = ...,
stipple: _Bitmap = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
width: _ScreenUnits = ...,
) -> _CanvasItemId: ...
def create_text(
@@ -1250,7 +1250,7 @@ class Canvas(Widget, XView, YView):
offset: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
stipple: _Bitmap = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
text: Union[float, str] = ...,
width: _ScreenUnits = ...,
) -> _CanvasItemId: ...
@@ -1262,7 +1262,7 @@ class Canvas(Widget, XView, YView):
anchor: _Anchor = ...,
height: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
tags: Union[str, Tuple[str, ...]] = ...,
tags: str | _TkinterSequence[str] = ...,
width: _ScreenUnits = ...,
window: Widget = ...,
) -> _CanvasItemId: ...