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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file QDarkStyle-2.8.tar.gz.
File metadata
- Download URL: QDarkStyle-2.8.tar.gz
- Upload date:
- Size: 405.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a967c4b664446f8bed9df12d1032cf68cb54f186bfc9cbfdbbc756bf9a5d475
|
|
| MD5 |
f98db28603c8d910d0ab86b211743ab8
|
|
| BLAKE2b-256 |
38912e90941a48e690ebd4d2e574417206d2d35a4e223c60878c76e7345f2dfb
|
File details
Details for the file QDarkStyle-2.8-py2.py3-none-any.whl.
File metadata
- Download URL: QDarkStyle-2.8-py2.py3-none-any.whl
- Upload date:
- Size: 214.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d164f8e526e7d004d96b8f18ffdbb17764f91ab4145b84c86b36b8274292a1
|
|
| MD5 |
ed9bbf0712ec4f85298463cd42a0084d
|
|
| BLAKE2b-256 |
7f1f65dbd7bffcfd0f7a91b36703a429ef0a519db10f910720446edc1924ece9
|