Node Editor - Can Nodes be nested? #2176
Replies: 1 comment
-
You can't directly set a node as an attribute (child) of another node in the traditional tree-like structure sense, since it's more designed for connecting nodes through links. You could possibly emulate this behaviour by organizing your nodes in such a way that they appear to have parent-child relationships, and then using links to indicate those relationships. If you want to represent XML structure, you may need to implement your own logic to manage parent-child relationships between nodes. You could potentially keep track of this with Python dictionaries or custom classes, then use that information to position and link nodes accordingly in the Dear PyGui node editor. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to use the node editor to represent an xml file structure of items. Those items are nested, as in a tree structure.
Is there any option to set a node as an attribute (child) of another node?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions