import customtkinter as CTK
class App(CTK.CTk):
def __init__(self):
super().__init__()
self.bar = CTK.CTkProgressBar(master=self.checkbox, orientation='horizontal', mode='determinate')
self.bar.grid(row=10, column=0, pady=10, padx=20, sticky="n")
def test(self):
for x in range(500):
return x**2
I want so that when I want I run the test function (via a button I already have made which works fine by itself) the bar starts and when it ends it stops. Although best would be if there was a way to use tqdm progress bar in the UI itself in place of the tkinter one?
I've tried adding self.bar.start() and stop at start/end of the function but doesn't seem to work. It only runs after the function itself is done.