Skip to content

This is fix size battery percentage for pyqt5 custom widget. This widget was created in Qt Designer.

Notifications You must be signed in to change notification settings

Ktheara/pyqt5-widget-battery-percentage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyQt5 Battery Percentage Widget Fix Size

I create this widget while making a GUI at work. I was trying to find any open-source battery widget but could not find one. Sharing this fix size widget won't help much but hope for someone was looking for a quick one like me.

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

  • This widget is fix size, you can resize in batterywidget.py
  • Feel free to update and republish it, maybe make it responsive.

About

This is fix size battery percentage for pyqt5 custom widget. This widget was created in Qt Designer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages