Accept int in tkinter.Canvas dash arguments (#10004)

This commit is contained in:
Akuli
2023-04-03 21:58:27 +03:00
committed by GitHub
parent 6a242fd1ee
commit f20cb4ed45

View File

@@ -1234,16 +1234,16 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
arrow: Literal["first", "last", "both"] = ...,
arrowshape: tuple[float, float, float] = ...,
capstyle: Literal["round", "projecting", "butt"] = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledstipple: str = ...,
disabledwidth: _ScreenUnits = ...,
@@ -1263,16 +1263,16 @@ class Canvas(Widget, XView, YView):
__xy_pair_0: tuple[float, float],
__xy_pair_1: tuple[float, float],
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
arrow: Literal["first", "last", "both"] = ...,
arrowshape: tuple[float, float, float] = ...,
capstyle: Literal["round", "projecting", "butt"] = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledstipple: str = ...,
disabledwidth: _ScreenUnits = ...,
@@ -1298,16 +1298,16 @@ class Canvas(Widget, XView, YView):
| list[tuple[float, float]]
),
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
arrow: Literal["first", "last", "both"] = ...,
arrowshape: tuple[float, float, float] = ...,
capstyle: Literal["round", "projecting", "butt"] = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledstipple: str = ...,
disabledwidth: _ScreenUnits = ...,
@@ -1329,15 +1329,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1359,15 +1359,15 @@ class Canvas(Widget, XView, YView):
__xy_pair_0: tuple[float, float],
__xy_pair_1: tuple[float, float],
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1395,15 +1395,15 @@ class Canvas(Widget, XView, YView):
| list[tuple[float, float]]
),
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1427,15 +1427,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*xy_pairs: float,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1460,15 +1460,15 @@ class Canvas(Widget, XView, YView):
__xy_pair_0: tuple[float, float],
__xy_pair_1: tuple[float, float],
*xy_pairs: tuple[float, float],
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1499,15 +1499,15 @@ class Canvas(Widget, XView, YView):
| list[tuple[float, float]]
),
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1534,15 +1534,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1564,15 +1564,15 @@ class Canvas(Widget, XView, YView):
__xy_pair_0: tuple[float, float],
__xy_pair_1: tuple[float, float],
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,
@@ -1600,15 +1600,15 @@ class Canvas(Widget, XView, YView):
| list[tuple[float, float]]
),
*,
activedash: str | list[int] | tuple[int, ...] = ...,
activedash: str | int | list[int] | tuple[int, ...] = ...,
activefill: str = ...,
activeoutline: str = ...,
activeoutlinestipple: str = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: str | list[int] | tuple[int, ...] = ...,
dash: str | int | list[int] | tuple[int, ...] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: str | list[int] | tuple[int, ...] = ...,
disableddash: str | int | list[int] | tuple[int, ...] = ...,
disabledfill: str = ...,
disabledoutline: str = ...,
disabledoutlinestipple: str = ...,