button positioning
#1598
-
Hello!! Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
vyrjana
Feb 14, 2022
Replies: 1 comment 1 reply
-
You can use # dpg is imported somewhere earlier in the file as follows:
# import dearpygui.dearpygui as dpg
with dpg.group(horizontal=True):
dpg.add_button(label="Button on the left")
dpg.add_button(label="Button on the right") Note the The official demo has more examples of how to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hoffstadt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
group
oradd_group
. The former is more convenient since you can do the following with it:Note the
horizontal=True
argument when callinggroup
.The official demo has more examples of how to use
group
(andadd_group
).