Webview
We use wxPython Phoenix to provide webviews. It's cross platform between Windows and macOS primarily, Linux versions require extra setup. Apple Silicon is theoretically supported natively. The end goal is to get a comprehensive API that can rival electron, while using native renderers instead.
The goal of this project is to provide an abstraction layer for wxPython and make setting up an app that uses webviews much easier.
Installation
This is a more difficult package to install because of wxPython.
pip install git+https://github.com/Workflow-Suite/WorkflowWebview.git
The master branch only contains working versions of WorkflowWebview. Development versions can be found in the forks.
The installation may fail. (May. This has no guarantees.) wxPython can be more difficult to install than other packages. You can install wxPython from one of these wheels:
https://wxpython.org/Phoenix/snapshot-builds/
Our GitHub discussions page may be able to help.
Quickstart
from workflowwebview import App
if __name__ == "__main__":
app = App()
window = app.addWindow(title="Title")
window.addBrowserView().webContents.LoadURL("https://github.com/Workflow-Suite/WorkflowWebview")
app.start()