GUI launches as a window in window, when gui window is closed you're left with black main window
zamonary1 opened this issue · 2 comments
zamonary1 commented
Version of Dear PyGui
Version: 1.11.1
Operating System: mint 21.3 cinnamon
My Issue/Question
DPG acts like a window in a window.
To Reproduce
Launch any example from github
Expected behavior
Normal looking window that can rescale without any problems
Screenshots/Video
Standalone, minimal, complete and verifiable example
# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg
def save_callback():
print("Save Clicked")
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window(label="Example Window"):
dpg.add_text("Hello world")
dpg.add_button(label="Save", callback=save_callback)
dpg.add_input_text(label="string")
dpg.add_slider_float(label="float")
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()```
v-ein commented
zamonary1 commented
Time to read the docs!
https://dearpygui.readthedocs.io/en/latest/tutorials/dpg-structure.html https://dearpygui.readthedocs.io/en/latest/documentation/viewport.html https://dearpygui.readthedocs.io/en/latest/documentation/primary-window.html
yeah that's me who's stupid. Thank you :/