| 78 | |
| 79 | |
| 80 | def check_versions(): |
| 81 | ver = cef.GetVersion() |
| 82 | print("[tutorial.py] CEF Python {ver}".format(ver=ver["version"])) |
| 83 | print("[tutorial.py] Chromium {ver}".format(ver=ver["chrome_version"])) |
| 84 | print("[tutorial.py] CEF {ver}".format(ver=ver["cef_version"])) |
| 85 | print("[tutorial.py] Python {ver} {arch}".format( |
| 86 | ver=platform.python_version(), |
| 87 | arch=platform.architecture()[0])) |
| 88 | assert cef.__version__ >= "57.0", "CEF Python v57.0+ required to run this" |
| 89 | |
| 90 | |
| 91 | def html_to_data_uri(html, js_callback=None): |