Skip to main content

A Qt-5 interactive stylesheet preview script

Project description

pyside2-style-test

Build Status License

A Qt-5 live updating styleable component test kit.

This application displays Qt-5 compliant widgets with a live preview of edits made to the desired stylesheet. It's currently intended to be used as a standalone application, not a library; although future releases may offer more features. I did make the functionality of this program available as a Qt Widget if you'd like to extend the functionality or use it in another program. So have at it.

The reason I decided to make this was to solve a issue I was running into trying to develop a QSS stylesheet system variant of the Purplest Inc Theme for Github's Atom Text Editor. For some reason, the Qt development team doesn't have any tools like this available to the open source community. At least none that I could find, even in the private sector! I found one on Sourceforge that was windows a exclusive release, and that's it. I guess the Qt Core development team may not see it as useful considering I only found one blog detailing the amazing feature that is Qt supporting a CSS variant. It even hosted some stylesheets! But as amazing as it is that I found someone who understands the beauty of CSS, it was tainted by the fact that I was still out of a way to reliably preview my Qt stylesheets.

Now I hope nobody else has to feel that way.

How to use:

Simply using pyside2-style-test.py /path/to/my/stylesheet at a terminal should incur the loading of the application. Any edits made to the stylesheet specified will be viewable while the application is running.

Alternatively, if you've downloaded this from PyPI using pip, then you can pyside2-style-test /path/to/my/stylesheeet from anywhere.

In the future:

Beyond version 1.0.0 leading into version 2.0.0, I do plan on making this at least a little more modular and to optimize the way widgets are previewed. I will eventually draft and upload a diagram of my future GUI. Just not today. I've gotta dig myself out of my project hole first. So if this is something you find helpful, look forward to that.

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

m3tior-pyside2-style-test-0.9.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m3tior_pyside2_style_test-0.9.3-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file m3tior-pyside2-style-test-0.9.3.tar.gz.

File metadata

  • Download URL: m3tior-pyside2-style-test-0.9.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for m3tior-pyside2-style-test-0.9.3.tar.gz
Algorithm Hash digest
SHA256 9f3be2a8d99c33b2077bc1e523ee7249aa6eb4f01e8bbae97d0ba2c2c4e7ea2a
MD5 2f1372449f7fb8c75497499fb0b12b7d
BLAKE2b-256 657b09bccf0f236b8e02697312cb5523e50aaf469e0d4d1cdab566a9c3ff69bd

See more details on using hashes here.

File details

Details for the file m3tior_pyside2_style_test-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: m3tior_pyside2_style_test-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for m3tior_pyside2_style_test-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 425db6fe11ae20139c8a6680791105415ff47185d6e8bd23f6c28cb661ec09ac
MD5 83d9621bd4f11221f08f27640a0537ac
BLAKE2b-256 d8d71e7f10705a7da139200d3568ea919bfc0e684a50a08560c01b6b3799f88d

See more details on using hashes here.

Supported by

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