hoffstadt / hoffstadt/DearPyGui

DPG Components

Open
#2,494 3 comments 0 reactions 0 assignees View on GitHub
state: pending
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
From React JS documentation: "A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page." Components are a powerful abstraction and I think DearPyGui would be twice as wonderful with it.

**Describe the solution you'd like**
I'd like to define, use and maintain components in Python. I want to use the same API as for regular items. I want to create components that contain other components and regular Items.

**Describe alternatives you've considered**
In some way or another many people end up writing classes that encapsulate logic and appearance. I've seen this in many repositories that use DearPyGui. But these components are not first class citizens i.e. they can't use the same API we use for regular items. Furthermore, the contract these classes need to implement is not well defined, so it's hard for people to share code and collaborate on common pieces of functionality.

**Additional context**
I'm a donkey and I can't read or write C++. But I tried to solve this problem in repo: [dpg-components](https://github.com/benjaminthedonkey/dpg-components)
I hope this clarifies the request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.