DPG Components
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 I hope this clarifies the request.
Not quiet a nice-to-have or a must-have. It adds more overhead, functions call, doc ... I tried, creating 10,000 TextBoxComp is 4 times slower than
for x in range(10000):
with dpg.group():
dpg.add_input_text(width=120, tag=f'text_{x}')
People can still write their (with or without class) quickly and efficiently.