The most complete dark stylesheet for Python and Qt applications
Project description
QDarkStyle is a dark stylesheet for Python and Qt applications.
This module provides a function to load the stylesheets transparently with the right resources file.
First, start importing our module
import qdarkstyle
Then you can get stylesheet provided by QDarkStyle for various Qt wrappers as shown below
# PySide
dark_stylesheet = qdarkstyle.load_stylesheet_pyside()
# PySide 2
dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()
# PyQt4
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt()
# PyQt5
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()
Alternatively, from environment variables provided by QtPy, PyQtGraph, Qt.Py
# QtPy
dark_stylesheet = qdarkstyle.load_stylesheet()
# PyQtGraph
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=os.environ('PYQTGRAPH_QT_LIB'))
# Qt.Py
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=Qt.__binding__)
Finally, set your QApplication with it
app.setStyleSheet(dark_stylesheet)
Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
QDarkStyle-2.8.tar.gz
(405.6 kB
view hashes)
Built Distribution
QDarkStyle-2.8-py2.py3-none-any.whl
(214.6 kB
view hashes)
Close
Hashes for QDarkStyle-2.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d164f8e526e7d004d96b8f18ffdbb17764f91ab4145b84c86b36b8274292a1 |
|
MD5 | ed9bbf0712ec4f85298463cd42a0084d |
|
BLAKE2b-256 | 7f1f65dbd7bffcfd0f7a91b36703a429ef0a519db10f910720446edc1924ece9 |