mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
allow intvar (#4967)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user