import tkinter as tkfrom tkinter import ttkimport psutildef update_battery_status(): battery = psutil.sensors_battery() if battery: charge = battery.percent status = "Charging" if battery.power_plugged else "Discharging" battery_label.config(text=f"Battery: {charge}% ({status})") progress['value'] = charge else: battery_label.config(text="Battery statu..