You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the step method of ctk_progessbar.py, the determinate_speed attribute is being divided by 50. I may have missed it in the documentation, but I did not see a purpose for this.
This presents an issue if manually using the step method and configuring the determinate_speed based on an incrementer:
importcustomtkinterapp=customtkinter.CTk()
progress=customtkinter.CTkProgressBar(app, mode="determinate", determinate_speed=.25)
progress.set(0)
print("Determinate speed is .25")
foriinrange(1,5):
progress.step()
speed=progress.get()
print(f"Incremented to {speed} instead of {speed*50}")
Result:
Determinate speed is .25
Incremented to 0.005 instead of 0.25
Incremented to 0.01 instead of 0.5
Incremented to 0.015 instead of 0.75
Incremented to 0.02 instead of 1.0
Maybe it is a carryover from the _internal_loop method and not intentional?
In the
step
method ofctk_progessbar.py
, thedeterminate_speed
attribute is being divided by 50. I may have missed it in the documentation, but I did not see a purpose for this.This presents an issue if manually using the
step
method and configuring thedeterminate_speed
based on an incrementer:Result:
Maybe it is a carryover from the
_internal_loop
method and not intentional?The text was updated successfully, but these errors were encountered: