Here is the pare of my code that is relevant.
while True:
p = int(psutil.cpu_percent(interval=0.1))
progressbar = ttk.Progressbar(orient=HORIZONTAL, length=screen_width, mode='determinate')
progressbar['value'] = p
progressbar.update_idletasks()
So when I run this is just spits freezes on the first value it gets from the p variable. I have tried setting VARIABLE instead of setting value like this. Please help.