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
|
# Web engine
The following renderers are used on each platform
| Platform | Renderer | Provider | Browser compatibility |
|----------|----------|---------------------------------------------------|-----------------------|
| GTK | WebKit | WebKit2 | |
| macOS | WebKit | WebKit.WKWebView (bundled with OS) | |
| QT | WebKit | QtWebKit | |
| Windows | Trident | MSHTML via .NET / System.Windows.Forms.WebBrowser | IE11 (Windows 10/8/7) |
| Windows | CEF | CEF Python | Chrome 66 |
To change a default renderer set either `PYWEBVIEW_GUI` environment variable or `webview.gui` value in the code. Available values are `cef` (Windows), `qt` (Linux, macOS) and `gtk` (Linux).
For example to use CEF on Windows
``` bash
PYWEBVIEW_GUI=cef
```
or
``` python
import webview
webview.gui = 'cef'
```
To force QT on Linux systems
``` bash
PYWEBVIEW_GUI=qt
```
or
``` python
import webview
webview.gui = 'qt'
```
|