question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for multiple windows?

See original GitHub issue

This feature will probably change the API significantly, but I wanted to at least document the need.

Essentially my idea would be that the webview.create_window() function returns a window handle or maybe even a BrowserView object that can be manipulated directly. That way you could instantiate multiple windows and destroy them individually.

Perhaps the app can quit when the last window is destroyed, or maybe there could be a ‘master’ window instance that can control all the other ones.

I’m kind of spit-balling but hopefully you get the idea. Could pywebview support multiple windows? Can you think of some other way to do it that doesn’t involve a major API change?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:34 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
r0x0rcommented, Feb 8, 2018

The multi-window JS bridge fails on all the platforms. There maybe something wrong with the test. I fixed debugging on Cocoa. The setting is global for all the opened windows. There is probably no need to make it specific to individual windows.

1reaction
r0x0rcommented, Apr 29, 2017

Sounds reasonable. Let’s start with your approach and see where it leads from there. One thing that needs to take into account the windowspec string of windows.open function. That way we can set up the properties of a new window from Javascript.

I have cloned your branch into https://github.com/r0x0r/pywebview/tree/multiple-windows-support. Please feel free to contribute pull requests to it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supporting Multiple Windows on iPad
To support multiple windows, the app's Info.plist requires a manifest or UIApplicationSceneManifest , which contains information about the app's scene-based ...
Read more >
Get more done with multitasking in Windows
Learn how to multitask in Windows by optimizing your screen space with Snap Assist and organizing your windows with Snap Groups.
Read more >
Multi-window support
Multi-window mode enables multiple apps to share the same screen simultaneously. Apps can be side by side or one above the other (split-screen...
Read more >
Adding support for multiple windows to your iPadOS app
If you started your project in Xcode 11 and you've checked the "Supports multiple windows" checkbox, you've done the first couple of steps...
Read more >
Implementing Multiple Window Support in iPadOS
Split-screen support was introduced in iOS 9 to allow viewing different apps in one window, whereas multiple window support allows viewing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found