Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Viewport Solutions #2420

Open
Umbrella167 opened this issue Nov 16, 2024 · 1 comment
Open

Multi-Viewport Solutions #2420

Umbrella167 opened this issue Nov 16, 2024 · 1 comment
Labels
state: pending not addressed yet

Comments

@Umbrella167
Copy link

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?

@Umbrella167 Umbrella167 added the state: pending not addressed yet label Nov 16, 2024
@v-ein
Copy link
Contributor

v-ein commented Nov 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

No branches or pull requests

2 participants