tkinter.Canvas: fix dash (#5867)

This commit is contained in:
Akuli
2021-08-07 16:38:05 +03:00
committed by GitHub
parent ae51d5264b
commit 36799fd63c

View File

@@ -1115,16 +1115,16 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: _Color = ...,
activedash: str | _TkinterSequence[int] = ...,
activefill: _Color = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
arrow: Literal["first", "last", "both"] = ...,
arrowshape: Tuple[float, float, float] = ...,
capstyle: Literal["round", "projecting", "butt"] = ...,
dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ...,
dash: str | _TkinterSequence[int] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: _Color = ...,
disableddash: str | _TkinterSequence[int] = ...,
disabledfill: _Color = ...,
disabledstipple: _Bitmap = ...,
disabledwidth: _ScreenUnits = ...,
@@ -1145,15 +1145,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: _Color = ...,
activedash: str | _TkinterSequence[int] = ...,
activefill: _Color = ...,
activeoutline: _Color = ...,
activeoutlinestipple: _Color = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ...,
dash: str | _TkinterSequence[int] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: _Color = ...,
disableddash: str | _TkinterSequence[int] = ...,
disabledfill: _Color = ...,
disabledoutline: _Color = ...,
disabledoutlinestipple: _Color = ...,
@@ -1176,15 +1176,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*xy_pairs: float,
activedash: _Color = ...,
activedash: str | _TkinterSequence[int] = ...,
activefill: _Color = ...,
activeoutline: _Color = ...,
activeoutlinestipple: _Color = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ...,
dash: str | _TkinterSequence[int] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: _Color = ...,
disableddash: str | _TkinterSequence[int] = ...,
disabledfill: _Color = ...,
disabledoutline: _Color = ...,
disabledoutlinestipple: _Color = ...,
@@ -1210,15 +1210,15 @@ class Canvas(Widget, XView, YView):
__x1: float,
__y1: float,
*,
activedash: _Color = ...,
activedash: str | _TkinterSequence[int] = ...,
activefill: _Color = ...,
activeoutline: _Color = ...,
activeoutlinestipple: _Color = ...,
activestipple: str = ...,
activewidth: _ScreenUnits = ...,
dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ...,
dash: str | _TkinterSequence[int] = ...,
dashoffset: _ScreenUnits = ...,
disableddash: _Color = ...,
disableddash: str | _TkinterSequence[int] = ...,
disabledfill: _Color = ...,
disabledoutline: _Color = ...,
disabledoutlinestipple: _Color = ...,