1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# CEF support
To use Chrome Embedded Framework on Windows.
``` python
import webview
# To pass custom settings to CEF, import and update settings dict
# See the complete set of options for CEF, here: https://github.com/cztomczak/cefpython/blob/master/api/ApplicationSettings.md
from webview.platforms.cef import settings
settings.update({
'persist_session_cookies': True
})
if __name__ == '__main__':
webview.create_window('CEF Example', 'https://pywebview.flowrl.com/hello')
webview.start(gui='cef')
```
|