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
Included Packages
- qtpy - Make this module support not only PyQt5 but also PyQt6, PySide2, PySide6
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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6091aa2af50f6dbd2203b5bbd9c7d5c8387e3c67520291952782a1694896fd9c |
|
MD5 | 152d1635f2a866e818781850255b0471 |
|
BLAKE2b-256 | 1b98e4676d99fe47d4ea800a9704c5fb8ceaef5804b5c43f832f5f81dbc4286e |
Close
Hashes for pyqt_resource_helper-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7204e2f976dc15eed151d5861f6cd1d83196d428c2f233434cacb43cbeb260e1 |
|
MD5 | 3d1b7646cfd9f9d1aa701e7f083cb477 |
|
BLAKE2b-256 | fb4e76265b7a0cf85b5780492c8957d6b9e01c99d820a027c7e8f6647e94834a |