allow intvar (#4967)

This commit is contained in:
Akuli
2021-01-23 14:04:33 +02:00
committed by GitHub
parent 88aa777568
commit ac0e2a6fe8
2 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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]: ...