Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -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): ...

Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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): ...
Expand Down
6 changes: 3 additions & 3 deletions stdlib/tkinter/ttk.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -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__(
Expand Down Expand Up @@ -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__(
Expand Down