Setting icons, stylesheets of imported packages based on main module to prevent FileNotFoundError
Project description
pyqt-resource-helper
Setting icons, stylesheets of imported packages based on main module's path to prevent FileNotFoundError
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'])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pyqt-resource-helper-0.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b64720296bbc49bee9bc913892ad3ef4343e20978c45f7498b33060567127a5 |
|
MD5 | fa2c64e7bb11ba56c8c034f0a0d9ecfb |
|
BLAKE2b-256 | 196258b467fafb961f9822d5ccb25ba6c66049808f3ade54c5bdbec7c1938261 |
Close
Hashes for pyqt_resource_helper-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e846b0125f0356d05d44555f8553ac42b11bcbbb010e1df6adf06b0406a54091 |
|
MD5 | 95c5b9048fcc450f5588bc1e15bdf151 |
|
BLAKE2b-256 | 776a79481cf93990bd49c2a110236496cc267f2de47d1670fa2dbbbdd1a5a3bc |