Functional dataclass implementations for DearPyGUI container types
Project description
DPGContainers
Motivation
DearPyGUI provides a functional interface for creating objects - windows, groups, et al. This library provides a collection of classes that can be used to create DPG objects as instances.
Installation
pip install dpgcontainers
Example usage
from dpgcontainers.containers import Window, Group, Button
window = Window(width=100, height=200)(
Group(horizontal=True)(
Button(tag='button_1'),
Button(tag='button_2'),
),
)
window.tagged_entities['button_1'].callback = lambda: print('clicked!')
window.render()
Children are captured by calling instances as functions. The render cycle is aware of objects that have already been rendered, so the following is fine:
window = Window()
window(Button('button_1'))
window.render()
window(Button('button_2'))
window.render()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dpgcontainers-0.1.6.tar.gz.
File metadata
- Download URL: dpgcontainers-0.1.6.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceecc39f3340ff6a04830b6c156b62f3f1edfd3d1ef0280ba2d32a30d74a8ebc
|
|
| MD5 |
7baab605e0dabf5eb910db82facf1dd7
|
|
| BLAKE2b-256 |
daad1adcdc6a3ec58e8597427252f5684c56dd46c93a48804131be0995620a08
|
File details
Details for the file dpgcontainers-0.1.6-py3-none-any.whl.
File metadata
- Download URL: dpgcontainers-0.1.6-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b15c368730f5c0b8bd21004226693885787b6dfa9b43c5e306e2bbc7c5c8f0e4
|
|
| MD5 |
e0a9edb59a216a85f9bfa8d76b27bfe6
|
|
| BLAKE2b-256 |
c3e66ba9c5c36d9162735c09b08bae9103175d12f0ce96bf35ece17fc59819b6
|