Posts

Showing posts with the label Tech Shorts 2025

Battery Status Checker App in Python GUI – Stylish Tkinter Tool (Dark Mode)

Image
  Demo : Click Video ðŸ‘‡ðŸ‘‡ðŸ‘‡ ⭐ Features: Stylish Dark GUI Interface Real-time Battery Percentage & Charging Status Auto-refresh Every 5 Seconds Lightweight & Clean Code Uses psutil + tkinter (No Extra Installation) 🧾 Folder Structure: BatteryStatusChecker/ ├── main.py └── README.txt Code : import psutil from tkinter import * def update_status():     battery = psutil.sensors_battery()          if battery is None:         percent_label.config(text="Battery info not available ❌")         status_label.config(text="Try on a laptop or check sensor")         return     percent = battery.percent     is_plugged = battery.power_plugged     percent_label.config(text=f"🔋 Battery: {percent}%")     status_text = "⚡ Charging" if is_plugged else "🔌 Discharging"     status_label.config(text=f"Status: {status_text}")   ...