i use tkinter, in one part of my code , i show battery percentage on screen and i use psutil module,
charging = tk.Label(DOWN_LEFT,bg='#0000CD',font=('Acumin Variable Concept',45,'bold '))
charging.place(x=420,y=60)
def battery():
battery = psutil.sensors_battery()
charging.config(text=f'{battery.percent}%')
battery()
everything is ok, until the battery percentage increases or decreses, but my value on the tkniter screen does not. do you have any idea???