r/DearPyGui • u/tiktokcompilationbot • Sep 16 '22
Help Demo not displaying correctly
Hi,
I am trying out dearpygui and I just run the demo with this piece of code, but it doesn't display properly. What am I doing wrong?
import dearpygui.dearpygui as dpgimport dearpygui.demo as demo
if __name__ == '__main__':dpg.create_context()dpg.create_viewport(title='Custom Title', width=600, height=600)
demo.show_demo()
dpg.setup_dearpygui()dpg.show_viewport()dpg.start_dearpygui()dpg.destroy_context()

1
Upvotes
3
u/Available-Offer6439 Sep 16 '22
I hope your code is properly indented and what I can see here is a reddit deal.
Otherwise, I am not seeing any issue with what the image is showing. What is your issue, exactly?
3
u/reddittestpilot Silver Sep 16 '22
The demo code runs in a window and not the full viewport (the operating system window). It looks fine.