A Qt-5 interactive stylesheet preview script
Project description
pyside2-style-test
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
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
Hashes for m3tior-pyside2-style-test-0.9.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f3be2a8d99c33b2077bc1e523ee7249aa6eb4f01e8bbae97d0ba2c2c4e7ea2a |
|
MD5 | 2f1372449f7fb8c75497499fb0b12b7d |
|
BLAKE2b-256 | 657b09bccf0f236b8e02697312cb5523e50aaf469e0d4d1cdab566a9c3ff69bd |
Hashes for m3tior_pyside2_style_test-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425db6fe11ae20139c8a6680791105415ff47185d6e8bd23f6c28cb661ec09ac |
|
MD5 | 83d9621bd4f11221f08f27640a0537ac |
|
BLAKE2b-256 | d8d71e7f10705a7da139200d3568ea919bfc0e684a50a08560c01b6b3799f88d |