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.36k stars 695 forks source link

Multi-Viewport Solutions #2420

Open Umbrella167 opened 1 week ago

Umbrella167 commented 1 week ago

Is there a multi-viewport feature in Dear PyGui? I'm currently facing the issue of having too many child windows, and I hope the child windows can have independent viewports. Or in which direction should I look to solve this problem?

v-ein commented 1 week ago

Unfortunately DPG only supports a single viewport. Deep inside, it stores the viewport in a global variable, so there can be only one viewport per process.

You can use multiple processes (not threads) to open multiple viewports. Take a look at the multiprocessing module, not sure how much it helps though.