Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 948 Bytes

File metadata and controls

20 lines (15 loc) · 948 Bytes

PySide6 Battery Percentage Widget (Responsive Version)

I updated the widget of https://github.com/Ktheara/pyqt5-widget-battery-percentage to be responsive to size changes. Additionally, I switched from PyQt5 to PySide6, as it offers better support and more modern features.

Imgae

Setup

  1. If you're using Qt Designer, promot your widget to BatteryWidget
  2. Copy batterywidget.py to your main directory
  3. To set the battery value use:
    self.yourUIbatteryWidgetName.setValue(value) # between 0 - 100, percentage

Note