Skip to content
Open
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
12 changes: 12 additions & 0 deletions stdlib/tkinter/ttk.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -814,25 +818,33 @@ 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
def configure(
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"] = ...,
orient: Literal["horizontal", "vertical"] = ...,
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]: ...
Expand Down
Loading