DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

two imnode attributes into a line

Open qianyimao opened this issue 4 months ago • 1 comments

the following code want put two attributes into a line, but raise an exception. with dpg.group: dpg.add_node_attribute dpg.add_node_attribute

"imgui.SameLine()" can put two attributes together which from 'py-imgui-redux' repo

qianyimao avatar Sep 05 '25 15:09 qianyimao

As a workaround, take a look at this script. https://github.com/my1e5/dpg-examples/blob/main/misc/multiple_node_attributes_one_line.py

Pretty complicated, but you can wrap that set of attributes with a context manager and use just like any other container in DPG (i.e. something like with node_input_output(...):).

v-ein avatar Sep 05 '25 15:09 v-ein