File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # An example of embedding CEF browser in wxPython on Linux.
2+ # Tested with wxPython 2.8.12.1 (gtk2-unicode).
3+ # To install wxPython type "sudo apt-get install python-wxtools".
4+
15# This example implements a custom "_OnResourceResponse" callback
26# that emulates reading response by utilizing Resourcehandler
37# and WebRequest.
48
59FIX_ENCODING_BUG = True
610BROWSER_DEFAULT_ENCODING = "utf-8"
711
8- # An example of embedding CEF browser in wxPython on Linux.
9-
1012# The official CEF Python binaries come with tcmalloc hook
1113# disabled. But if you've built custom binaries and kept tcmalloc
1214# hook enabled, then be aware that in such case it is required
Original file line number Diff line number Diff line change 11# An example of embedding CEF browser in wxPython on Linux.
2+ # Tested with wxPython 2.8.12.1 (gtk2-unicode).
3+ # To install wxPython type "sudo apt-get install python-wxtools".
24
35# The official CEF Python binaries come with tcmalloc hook
46# disabled. But if you've built custom binaries and kept tcmalloc
@@ -724,14 +726,12 @@ def GetSources():
724726 # browser, see the call to CreateBrowserSync.
725727 g_browserSettings = {
726728 # "plugins_disabled": True,
727- "file_access_from_file_urls_allowed" : True ,
728- "universal_access_from_file_urls_allowed" : True ,
729+ # "file_access_from_file_urls_allowed": True,
730+ # "universal_access_from_file_urls_allowed": True,
729731 }
730732
731733 # Command line switches set programmatically
732734 switches = {
733- "allow-file-access-from-files" : "" ,
734- "allow-file-access" : "" ,
735735 # "proxy-server": "socks5://127.0.0.1:8888",
736736 # "no-proxy-server": "",
737737 # "enable-media-stream": "",
Original file line number Diff line number Diff line change 1+ # An example of embedding CEF browser in wxPython on Linux.
2+ # Tested with wxPython 2.8.12.1 (gtk2-unicode).
3+ # To install wxPython type "sudo apt-get install python-wxtools".
4+
15# This example implements a custom "_OnResourceResponse" callback
26# that emulates reading response by utilizing Resourcehandler
37# and WebRequest.
48
59FIX_ENCODING_BUG = True
610BROWSER_DEFAULT_ENCODING = "utf-8"
711
8- # An example of embedding CEF browser in wxPython on Linux.
9-
1012# The official CEF Python binaries come with tcmalloc hook
1113# disabled. But if you've built custom binaries and kept tcmalloc
1214# hook enabled, then be aware that in such case it is required
Original file line number Diff line number Diff line change 11# An example of embedding CEF browser in wxPython on Linux.
2+ # Tested with wxPython 2.8.12.1 (gtk2-unicode).
3+ # To install wxPython type "sudo apt-get install python-wxtools".
24
35# The official CEF Python binaries come with tcmalloc hook
46# disabled. But if you've built custom binaries and kept tcmalloc
@@ -724,14 +726,12 @@ def GetSources():
724726 # browser, see the call to CreateBrowserSync.
725727 g_browserSettings = {
726728 # "plugins_disabled": True,
727- "file_access_from_file_urls_allowed" : True ,
728- "universal_access_from_file_urls_allowed" : True ,
729+ # "file_access_from_file_urls_allowed": True,
730+ # "universal_access_from_file_urls_allowed": True,
729731 }
730732
731733 # Command line switches set programmatically
732734 switches = {
733- "allow-file-access-from-files" : "" ,
734- "allow-file-access" : "" ,
735735 # "proxy-server": "socks5://127.0.0.1:8888",
736736 # "no-proxy-server": "",
737737 # "enable-media-stream": "",
You can’t perform that action at this time.
0 commit comments