diff --git a/stdlib/tkinter/ttk.pyi b/stdlib/tkinter/ttk.pyi index bf184bc2e8f8..90cb3d5ba2c3 100644 --- a/stdlib/tkinter/ttk.pyi +++ b/stdlib/tkinter/ttk.pyi @@ -804,8 +804,12 @@ class Progressbar(Widget): self, master: tkinter.Misc | None = None, *, + anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ..., # new in Tcl/Tk 9.0 class_: str = "", cursor: tkinter._Cursor = "", + font: _FontDescription = ..., # new in Tcl/Tk 9.0 + foreground: str = "", # new in Tcl/Tk 9.0 + justify: Literal["left", "center", "right"] = ..., # new in Tcl/Tk 9.0 length: float | str = 100, maximum: float = 100, mode: Literal["determinate", "indeterminate"] = "determinate", @@ -814,8 +818,10 @@ class Progressbar(Widget): phase: int = 0, # docs say read-only but assigning int to this works style: str = "", takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "", + text: float | str = "", # new in Tcl/Tk 9.0 value: float = 0.0, variable: tkinter.IntVar | tkinter.DoubleVar = ..., + wraplength: float | str = ..., # new in Tcl/Tk 9.0 ) -> None: ... @overload @@ -823,7 +829,11 @@ class Progressbar(Widget): self, cnf: dict[str, Any] | None = None, *, + anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ..., # new in Tcl/Tk 9.0 cursor: tkinter._Cursor = ..., + font: _FontDescription = ..., # new in Tcl/Tk 9.0 + foreground: str = ..., # new in Tcl/Tk 9.0 + justify: Literal["left", "center", "right"] = ..., # new in Tcl/Tk 9.0 length: float | str = ..., maximum: float = ..., mode: Literal["determinate", "indeterminate"] = ..., @@ -831,8 +841,10 @@ class Progressbar(Widget): phase: int = ..., style: str = ..., takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ..., + text: float | str = ..., # new in Tcl/Tk 9.0 value: float = ..., variable: tkinter.IntVar | tkinter.DoubleVar = ..., + wraplength: float | str = ..., # new in Tcl/Tk 9.0 ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ... @overload def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...