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
13.33k stars 694 forks source link

Resizing OS window makes Dear PyGui unresponsive #2401

Open peralmered opened 1 month ago

peralmered commented 1 month ago

When running the demo application (as detailed in #2387), if I resize the OS window before touching the DPG window, the DPG window gets completely unresponsive, and I can only close down the OS window. Python 3.12.6, Windows 10 Pro 22H2, DPG 1.11.1

Version of Dear PyGui

Python v3.12.6 Dear PyGui v1.11.1 Windows 10 Pro 22H2

My Issue/Question

When running the demo application (as detailed in #2387), if I resize the OS window before touching the DPG window, the DPG window gets completely unresponsive, and I can only close down the OS window.

To Reproduce

Steps to reproduce the behavior:

`import dearpygui.dearpygui as dpg import dearpygui.demo as demo

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() `

Run code, resize the OS window, then try clicking or click-dragging any part of the DPG window. It's completely unresponsize, and all I can do it close the OS window.

Expected behavior

I'd expect DPG to run as normal even when resizing the OS window first. If I just click the DPG window before resizing the OS window, all is well. 100% reproducible here.

v01d-gh commented 1 month ago

Yes, yes, yes! I've encountered this same problem many times. Windows 11 23H2. In the end, I decided to prohibit resizing so that there was no way to break it. But if somebody fix it, it would be great. Although first I would like to get support for Python 3.13.