QDARKSTYLE.EXAMPLE(1)
π QDARKSTYLE.EXAMPLE π
okay bestie, welcome to qdarkstyle.example β it's the qdarkstyle example gui program and it's literally the cutest way to see what this whole thing does. no cap.
β¨ DESCRIPTION β¨
so here's the vibe, the usage goes a lil something like this:
usage: qdarkstyle.example [-h] [--palette {dark,light,none}]
[--qt_from {pyqt5,pyqt6,pyside2,pyside6,qtpy,pyqtgraph}]
[--test] [--screenshots] [--offscreen] [--reset]
It's the example of qdarkstyle use for Python and Qt applications. πβ¨
This module has a main window with every item that could be created with Qt Design (the common ones, not every single obscure lil guy) in the basic states (enabled/disabled), and (checked/unchecked) for those who has this attribute. it's giving museum of widgets. π
Requirements: π«Ά
- Python 3
- QtPy
- PyQt5 or PyQt6 or PySide2 or PySide6
- PyQtGraph (if chosen)
πΈ running it πΈ
To run this example using PyQt5, simple do
python example.py
or
python example.py
--qt_from=pyqt5
Other options for qt_from are: pyqt5, pyqt6, pyside2, pyside6, qtpy, pyqtgraph. Also, you can run the example without any theme (none), to check for problems. π
python example.py
--qt_from=pyqt5 --palette=none
π Note:
qdarkstyle does not have to be installed to run the example. periodt. you can just run it. iconic behavior honestly.
π optional arguments:
-h,--helpβ show this help message and exit. the classic. the main character of every CLI. π--palette {dark,light,none}β Palette to display. Using'none'there is no style sheet applied, OS like. so it's giving... raw. unseasoned. just your OS doing its thing. π--qt_from {pyqt5,pyqt6,pyside2,pyside6,qtpy,pyqtgraph}β Choose which binding and/or abstraction is to be used to run the example. Default is'qtpy'. pick your fighter bestie βοΈ--testβ Auto close window after 2s.--screenshotsβ Generate screenshots on images folder. πΈ say cheese--offscreenβ Do not try to show the screen (running on server). for my headless girlies who live in the terminal π₯οΈβ¨--resetβ Reset GUI settings (position, size) then opens. fresh start, clean slate, new me energy π¦
qdarkstyle π January 2022
and that's the whole page bestie!! go forth and run python example.py and slay ππβ¨
π¦ where this page comes from
- debian trixie: python3-qdarkstyle 3.2.3+ds1-3 Β· MIT
- ubuntu questing: python3-qdarkstyle 3.2.3+ds1-3
- ubuntu resolute: python3-qdarkstyle 3.2.3+ds1-3build1 Β· MIT
- ubuntu stonking: python3-qdarkstyle 3.2.3+ds1-3build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms