Subclassing PyQt5.QtWidgets to syncronize state in QSettings object.
Project description
configwidgets
Subclassing QWidgets
to save the widget state in a QSettings
Instance.
A setup
method links the widget to key within the QSettings
instance.
The value is loaded during setup and gets stored when the widget state changes.
Without calling this method, the widget has no special behaviour.
See the following snippet for a minimal example:
from PyQt5.QtCore import QSettings
from configwidgets import ConfigCheckBox
config = QSettings()
checkBox = ConfigCheckBox()
checkBox.setup(config, "checkBox")
setup
install the package via pip:
pip install configwidgets
The full documentation can be found under configwidgets documentation The source code can be found under configwidgets repository
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
configwidgets-1.4.3.tar.gz
(23.4 kB
view details)
File details
Details for the file configwidgets-1.4.3.tar.gz
.
File metadata
- Download URL: configwidgets-1.4.3.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcbe2ed2aa28af799d7119219bca1cb262c571213e4f943dd6d9af67e457eb2a |
|
MD5 | c7a7e05774611b73d82b08bda121bc68 |
|
BLAKE2b-256 | 1210d29fb4d44a14c579cb123ef8281c268bc8ba6a0454865c076836d8855243 |