Skip to content
Open
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
16 changes: 8 additions & 8 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2236,8 +2236,8 @@ class Entry(Widget, XView):
insertofftime: int = 300,
insertontime: int = 600,
insertwidth: float | str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "", # same as invalidcommand
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = "", # same as invalidcommand
justify: Literal["left", "center", "right"] = "left",
name: str = ...,
readonlybackground: str = ...,
Expand Down Expand Up @@ -2281,8 +2281,8 @@ class Entry(Widget, XView):
insertofftime: int = ...,
insertontime: int = ...,
insertwidth: float | str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
readonlybackground: str = ...,
relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
Expand Down Expand Up @@ -4123,8 +4123,8 @@ class Spinbox(Widget, XView):
insertofftime: int = 300,
insertontime: int = 600,
insertwidth: float | str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
justify: Literal["left", "center", "right"] = "left",
name: str = ...,
readonlybackground: str = ...,
Expand Down Expand Up @@ -4181,8 +4181,8 @@ class Spinbox(Widget, XView):
insertofftime: int = ...,
insertontime: int = ...,
insertwidth: float | str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
readonlybackground: str = ...,
relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
Expand Down
16 changes: 8 additions & 8 deletions stdlib/tkinter/ttk.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class Entry(Widget, tkinter.Entry):
exportselection: bool = True,
font: _FontDescription = "TkTextFont",
foreground: str = "",
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
justify: Literal["left", "center", "right"] = "left",
name: str = ...,
show: str = "",
Expand All @@ -364,7 +364,7 @@ class Entry(Widget, tkinter.Entry):
exportselection: bool = ...,
font: _FontDescription = ...,
foreground: str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
show: str = ...,
state: str = ...,
Expand All @@ -390,7 +390,7 @@ class Entry(Widget, tkinter.Entry):
exportselection: bool = ...,
font: _FontDescription = ...,
foreground: str = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
show: str = ...,
state: str = ...,
Expand Down Expand Up @@ -421,7 +421,7 @@ class Combobox(Entry):
font: _FontDescription = ..., # undocumented
foreground: str = ..., # undocumented
height: int = 10,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ..., # undocumented
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ..., # undocumented
justify: Literal["left", "center", "right"] = "left",
name: str = ...,
postcommand: Callable[[], object] | str = "",
Expand All @@ -448,7 +448,7 @@ class Combobox(Entry):
font: _FontDescription = ...,
foreground: str = ...,
height: int = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
postcommand: Callable[[], object] | str = ...,
show=...,
Expand Down Expand Up @@ -477,7 +477,7 @@ class Combobox(Entry):
font: _FontDescription = ...,
foreground: str = ...,
height: int = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
postcommand: Callable[[], object] | str = ...,
show=...,
Expand Down Expand Up @@ -1068,7 +1068,7 @@ class Spinbox(Entry):
format: str = "",
from_: float = 0,
increment: float = 1,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ..., # undocumented
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ..., # undocumented
justify: Literal["left", "center", "right"] = ..., # undocumented
name: str = ...,
show=..., # undocumented
Expand Down Expand Up @@ -1099,7 +1099,7 @@ class Spinbox(Entry):
format: str = ...,
from_: float = ...,
increment: float = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
justify: Literal["left", "center", "right"] = ...,
show=...,
state: str = ...,
Expand Down
Loading