CustomTkinter
CustomTkinter copied to clipboard
get state of progressbar
is there a way to check if the progress bar is already running?
i am using mode='indeterminate' so i cant get the current value to check if it is > 0 how do i check it then? can we get a function for this?
@GermanYoshi Use progressbar.cget("mode") to get the current mode.
sorry my question was a bit inaccurate. how do i see if the progressbar is in state progressbar.start() or .stop()
You can go to "widgets -> ctk_progressbar.py" and jump to cget method then add this
elif attribute_name == "loop_running":
return self._loop_running
then use progressbar.cget("loop_running")
@GermanYoshi @M4hbod
Or you can directly use progressbar._loop_running instead of doing changes in the module.
thanks