mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
add types to tkinter invoke methods (#5582)
This commit is contained in:
@@ -995,7 +995,7 @@ class Button(Widget):
|
||||
def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...
|
||||
config = configure
|
||||
def flash(self): ...
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
|
||||
class Canvas(Widget, XView, YView):
|
||||
def __init__(
|
||||
@@ -1417,7 +1417,7 @@ class Checkbutton(Widget):
|
||||
config = configure
|
||||
def deselect(self): ...
|
||||
def flash(self): ...
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
def select(self): ...
|
||||
def toggle(self): ...
|
||||
|
||||
@@ -2299,7 +2299,7 @@ class Radiobutton(Widget):
|
||||
config = configure
|
||||
def deselect(self): ...
|
||||
def flash(self): ...
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
def select(self): ...
|
||||
|
||||
class Scale(Widget):
|
||||
@@ -2971,7 +2971,8 @@ class Spinbox(Widget, XView):
|
||||
def identify(self, x, y): ...
|
||||
def index(self, index): ...
|
||||
def insert(self, index, s): ...
|
||||
def invoke(self, element): ...
|
||||
# spinbox.invoke("asdf") gives error mentioning .invoke("none"), but it's not documented
|
||||
def invoke(self, element: Literal["none", "buttonup", "buttondown"]) -> Literal[""]: ...
|
||||
def scan(self, *args): ...
|
||||
def scan_mark(self, x): ...
|
||||
def scan_dragto(self, x): ...
|
||||
|
||||
@@ -76,7 +76,7 @@ class Button(Widget):
|
||||
@overload
|
||||
def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...
|
||||
config = configure
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
|
||||
class Checkbutton(Widget):
|
||||
def __init__(
|
||||
@@ -128,7 +128,7 @@ class Checkbutton(Widget):
|
||||
@overload
|
||||
def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...
|
||||
config = configure
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
|
||||
class Entry(Widget, tkinter.Entry):
|
||||
def __init__(
|
||||
@@ -652,7 +652,7 @@ class Radiobutton(Widget):
|
||||
@overload
|
||||
def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...
|
||||
config = configure
|
||||
def invoke(self): ...
|
||||
def invoke(self) -> Any: ...
|
||||
|
||||
class Scale(Widget, tkinter.Scale):
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user