diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index c5ea645a1..a0fff49e9 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -2193,7 +2193,7 @@ class Scale(Widget): tickinterval: float = ..., to: float = ..., troughcolor: _Color = ..., - variable: DoubleVar = ..., + variable: Union[IntVar, DoubleVar] = ..., width: _ScreenUnits = ..., ) -> None: ... @overload @@ -2233,7 +2233,7 @@ class Scale(Widget): tickinterval: float = ..., to: float = ..., troughcolor: _Color = ..., - variable: DoubleVar = ..., + variable: Union[IntVar, DoubleVar] = ..., width: _ScreenUnits = ..., ) -> Optional[Dict[str, Tuple[str, str, str, Any, Any]]]: ... @overload diff --git a/stdlib/3/tkinter/ttk.pyi b/stdlib/3/tkinter/ttk.pyi index 1baac3372..fdd688415 100644 --- a/stdlib/3/tkinter/ttk.pyi +++ b/stdlib/3/tkinter/ttk.pyi @@ -582,7 +582,7 @@ class Progressbar(Widget): style: str = ..., takefocus: tkinter._TakeFocusValue = ..., value: float = ..., - variable: tkinter.DoubleVar = ..., + variable: Union[tkinter.IntVar, tkinter.DoubleVar] = ..., ) -> None: ... @overload def configure( @@ -598,7 +598,7 @@ class Progressbar(Widget): style: str = ..., takefocus: tkinter._TakeFocusValue = ..., value: float = ..., - variable: tkinter.DoubleVar = ..., + variable: Union[tkinter.IntVar, tkinter.DoubleVar] = ..., ) -> Optional[Dict[str, Tuple[str, str, str, Any, Any]]]: ... @overload def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ... @@ -671,7 +671,7 @@ class Scale(Widget, tkinter.Scale): takefocus: tkinter._TakeFocusValue = ..., to: float = ..., value: float = ..., - variable: tkinter.DoubleVar = ..., + variable: Union[tkinter.IntVar, tkinter.DoubleVar] = ..., ) -> None: ... @overload # type: ignore def configure( @@ -688,7 +688,7 @@ class Scale(Widget, tkinter.Scale): takefocus: tkinter._TakeFocusValue = ..., to: float = ..., value: float = ..., - variable: tkinter.DoubleVar = ..., + variable: Union[tkinter.IntVar, tkinter.DoubleVar] = ..., ) -> Optional[Dict[str, Tuple[str, str, str, Any, Any]]]: ... @overload def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ... @@ -708,7 +708,7 @@ class Scale(Widget, tkinter.Scale): takefocus: tkinter._TakeFocusValue = ..., to: float = ..., value: float = ..., - variable: tkinter.DoubleVar = ..., + variable: Union[tkinter.IntVar, tkinter.DoubleVar] = ..., ) -> Optional[Dict[str, Tuple[str, str, str, Any, Any]]]: ... @overload def config(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...