-
Notifications
You must be signed in to change notification settings - Fork 1.1k
CTkProgressBar
Tom Schimansky edited this page Sep 16, 2022
·
9 revisions
Default theme:
progressbar = customtkinter.CTkProgressBar(master=root_tk)
progressbar.pack(padx=20, pady=10)
argument | value |
---|---|
master | root, tkinter.Frame or CTkFrame |
width | slider width in px |
height | slider height in px |
border_width | border width in px |
corner_radius | corner_radius in px |
fg_color | foreground color, tuple: (light_color, dark_color) or single color |
bg_color | background color, tuple: (light_color, dark_color) or single color |
border_color | slider border color, tuple: (light_color, dark_color) or single color |
progress_color | progress color, tuple: (light_color, dark_color) or single color |
orientation | "horizontal" (standard) or "vertical" |
-
All attributes can be configured and updated.
ctk_progressbar.configure(fg_color=..., progress_color=..., number_of_steps=None, ...)
-
Set progress bar to specific value (range set by
_from
andto
attributes). -
Get current value of progress bar.
value = ctk_progressbar.get()
-
Start automatic progress. Speed is set by
indeterminate_speed
anddeterminate_speed
attributes, default is 1. If mode is set to "indeterminate", the progress bar will oscillate, otherwise it will fill up and then repeat. -
Stop automatic progress.
CustomTkinter by Tom Schimansky 2022
The Github Wiki is outdated, the new documentation can be found at: