Skip to content

This is responsive size battery percentage for pyqt6 (PySide6) custom widget.

Notifications You must be signed in to change notification settings

alexander-thiesen/pyside6-widget-battery-percentage-responsive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is responsive size battery percentage for pyqt6 (PySide6) custom widget.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%