Skip to content

Setting icons, stylesheets of imported packages based on main module's path to prevent FileNotFoundError

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt-resource-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-resource-helper

Setting icons, stylesheets of imported packages based on main module's path to prevent FileNotFoundError and improve convinience.

This can be used for PySide as well. But it is not written in requirements. Basically this is for PyQt.

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-resource-helper

Usage

# set the icon
PyQtResourceHelper.setIcon([closeBtn], ['ico/close.png']) 
# set the style
PyQtResourceHelper.setStyleSheet([closeBtn], ['style/button.css'])

About

Setting icons, stylesheets of imported packages based on main module's path to prevent FileNotFoundError

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages