QDARKSTYLE.EXAMPLE(1)

πŸ“¦
version 3.2.3 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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