1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
# Web engine
The following renderers are used on each platform
| Platform | Code | Renderer | Provider | Browser compatibility |
|----------|--------------|----------|---------------------------------------------------|-----------------------|
| Android | | WebKit | | Ever-green Chromium |
| GTK | gtk | WebKit | WebKit2 (minimum version >2.2) | |
| macOS | | WebKit | WebKit.WKWebView (bundled with OS) | |
| QT | qt | WebKit | QtWebEngine / QtWebKit | |
| Windows | edgechromium | Chromium | > .NET Framework 4.6.2 and Edge Runtime installed | Ever-green Chromium |
| Windows | cef | CEF | CEF Python | Chrome 66 |
| Windows | mshtml | MSHTML | DEPRECATED: Internet Explorer MSHTML | IE11 (Windows 10/8/7) |
On Windows renderer is chosen in the following order: `edgechromium`, `mshtml`. `mshtml` is the only renderer that is guaranteed to be available on any system. Edge Runtime must be installed in order to use Edge Chromium on Windows. You can download it from [here](https://developer.microsoft.com/en-us/microsoft-edge/webview2/). Distribution guidelines are found [here](https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution).
To change a default renderer set either `PYWEBVIEW_GUI` environment variable or pass the rendered value to `webview.start(gui=code)` function parameter. Check for available values in the Code column from the table above.
For example to use CEF on Windows
``` bash
export PYWEBVIEW_GUI=cef
```
or
``` python
import webview
webview.start(gui='cef')
```
If you wish to pass custom settings to CEF, refer to [this example](/examples/cef.html)
To force QT on Linux systems
``` bash
export PYWEBVIEW_GUI=qt
```
or
``` python
import webview
webview.start(gui='qt')
```
## Known issues and limitations
## QtWebKit
* Debugging is not supported
|