propsettings_qt
This package provides a mechanism of automatic PySide2 (Qt) widget generation to edit member variables of an object. The variables should be registered as a propsettings.Setting. See propsettings for more information.
Installation
pip install propsettings-qt
Usage
The most common usage of this package is through the SettingsAreaWidget Qt widget class. e.g. For a given class decorated with propsettings's Settings
from propsettings.configurable import register_as_setting
from propsettings.setting_types.range_setting_type import Range
class Example:
def __init__(self):
self.a = 1
self.b = 0.3
self.c = 'asd'
register_as_setting(Example, "a")
register_as_setting(Example, "b", setting_type=Range(0.0, 1.0))
register_as_setting(Example, "c")
it can be drawn in a UI with
from propsettings_qt.ui_settings_area import SettingsAreaWidget
widget = SettingsAreaWidget()
example_object = Example()
widget.populate_object(example_object)
The resulting widget will look like
Metadata
Release files for propsettings-qt 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| propsettings_qt-0.2.8.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| propsettings_qt-0.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / propsettings_qt-0.2.8.tar.gz
| Download URL | propsettings_qt-0.2.8.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
558ffe68ea4ba7862563284353e7357777200dd9159736e292ebe5e972a804a2
|
|
BLAKE2b-256 checksum How to use checksums |
1a0a21cd501f43a4771afff21eb5732569cf0e8f1fd79551d79897326db187d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / propsettings_qt-0.2.8-py3-none-any.whl
| Download URL | propsettings_qt-0.2.8-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d69d72970b8e2675249960be4b994e28f82a825225deba02350e95c91265d4f9
|
|
BLAKE2b-256 checksum How to use checksums |
ef2ab1fc8442b61acae7c5cab2813a5cea640204f88d71e5c0f8a4b2e7f16582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|