Skip to main content

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

pyqt-resource-helper-0.0.14.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pyqt_resource_helper-0.0.14-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page