hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.62k stars 669 forks source link

GUI launches as a window in window, when gui window is closed you're left with black main window #2330

Closed zamonary1 closed 1 month ago

zamonary1 commented 1 month ago

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

Peek 2024-05-15 00-48

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 1 month ago

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

zamonary1 commented 1 month ago

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 :/