File tree Expand file tree Collapse file tree 3 files changed +22
-10
lines changed
Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 11# Hello world example. Doesn't depend on any third party GUI framework.
2- # Tested with CEF Python v55.3 +.
2+ # Tested with CEF Python v57.0 +.
33
44from cefpython3 import cefpython as cef
55import platform
@@ -17,10 +17,14 @@ def main():
1717
1818
1919def check_versions ():
20- print ("[hello_world.py] CEF Python {ver}" .format (ver = cef .__version__ ))
20+ ver = cef .GetVersion ()
21+ print ("[hello_world.py] CEF Python {ver}" .format (ver = ver ["version" ]))
22+ print ("[hello_world.py] Chromium {ver}" .format (ver = ver ["chrome_version" ]))
23+ print ("[hello_world.py] CEF {ver}" .format (ver = ver ["cef_version" ]))
2124 print ("[hello_world.py] Python {ver} {arch}" .format (
22- ver = platform .python_version (), arch = platform .architecture ()[0 ]))
23- assert cef .__version__ >= "55.3" , "CEF Python v55.3+ required to run this"
25+ ver = platform .python_version (),
26+ arch = platform .architecture ()[0 ]))
27+ assert cef .__version__ >= "57.0" , "CEF Python v57.0+ required to run this"
2428
2529
2630if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -65,9 +65,13 @@ def main():
6565
6666
6767def check_versions ():
68- print ("[screenshot.py] CEF Python {ver}" .format (ver = cef .__version__ ))
68+ ver = cef .GetVersion ()
69+ print ("[screenshot.py] CEF Python {ver}" .format (ver = ver ["version" ]))
70+ print ("[screenshot.py] Chromium {ver}" .format (ver = ver ["chrome_version" ]))
71+ print ("[screenshot.py] CEF {ver}" .format (ver = ver ["cef_version" ]))
6972 print ("[screenshot.py] Python {ver} {arch}" .format (
70- ver = platform .python_version (), arch = platform .architecture ()[0 ]))
73+ ver = platform .python_version (),
74+ arch = platform .architecture ()[0 ]))
7175 print ("[screenshot.py] Pillow {ver}" .format (ver = PILLOW_VERSION ))
7276 assert cef .__version__ >= "57.0" , "CEF Python v57.0+ required to run this"
7377
Original file line number Diff line number Diff line change 11# Tutorial example. Doesn't depend on any third party GUI framework.
2- # Tested with CEF Python v56.2 +
2+ # Tested with CEF Python v57.0 +
33
44from cefpython3 import cefpython as cef
55import base64
@@ -78,10 +78,14 @@ def main():
7878
7979
8080def check_versions ():
81- print ("[tutorial.py] CEF Python {ver}" .format (ver = cef .__version__ ))
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" ]))
8285 print ("[tutorial.py] Python {ver} {arch}" .format (
83- ver = platform .python_version (), arch = platform .architecture ()[0 ]))
84- assert cef .__version__ >= "56.2" , "CEF Python v56.2+ required to run this"
86+ ver = platform .python_version (),
87+ arch = platform .architecture ()[0 ]))
88+ assert cef .__version__ >= "57.0" , "CEF Python v57.0+ required to run this"
8589
8690
8791def html_to_data_uri (html , js_callback = None ):
You can’t perform that action at this time.
0 commit comments