Support for multiple windows?
See original GitHub issueThis 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:
- Created 7 years ago
- Comments:34 (17 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.