@@ -36,7 +36,7 @@ Run the commands below to install the cefpython3 package, clone
3636the github repository, enter the examples/ directory and run the
3737Hello World example:
3838
39- ```
39+ ``` commandline
4040pip install cefpython3==56.1
4141git clone https://github.com/cztomczak/cefpython.git
4242cd cefpython/examples/
@@ -142,7 +142,7 @@ must be called and if running CEF message loop then it must be
142142stopped first. In all CEF Python examples you can find such
143143a line that overwrites the default exception handler in Python:
144144
145- ```
145+ ``` python
146146sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error
147147```
148148
@@ -187,7 +187,7 @@ an external message pump for best performance.
187187
188188On Windows for best performance a multi-threaded message loop should
189189be used instead of cef.MessageLoopWork() or external message pump. To do
190- so, set ApplicationSettings.[ multi_threaded_message_loop] ( ../ApplicationSettings.md#multi_threaded_message_loop )
190+ so, set ApplicationSettings.[ multi_threaded_message_loop] ( ../api/ ApplicationSettings.md#multi_threaded_message_loop )
191191to True and run a native message loop in your app. Don't call CEF's
192192message loop. Create browser using ` cef.PostTask(cef.TID_UI, cef.CreateBrowserSync, ...) ` .
193193Note that when using multi-threaded message loop, CEF's UI thread
@@ -242,7 +242,7 @@ Here are some settings worth noting:
242242 for localized resources
243243
244244To enable debugging set these settings:
245- ```
245+ ``` python
246246settings = {
247247 " debug" : True ,
248248 " log_severity" : cef.LOGSEVERITY_WARNING ,
@@ -270,7 +270,7 @@ Examples switches:
270270
271271Example code:
272272
273- ```
273+ ``` python
274274switches = {
275275 " enable-media-stream" : " " ,
276276 " proxy-server" : " socks5://127.0.0.1:8888" ,
@@ -310,9 +310,10 @@ underscore in its name.
310310The [ tutorial.py] ( ../examples/tutorial.py ) example shows how to
311311implement client handlers like [ DisplayHandler] ( ../api/DisplayHandler.md )
312312and [ LoadHandler] ( ../api/LoadHandler.md ) . It also shows how to
313- implement a global client callback LifespanHandler.[ _ OnAfterCreated] ( ../api/LifespanHandler.md#_onaftercreated ) . Here is some source code:
313+ implement a global client callback LifespanHandler.[ _ OnAfterCreated] ( ../api/LifespanHandler.md#_onaftercreated ) . Here is part of its
314+ source code:
314315
315- ```
316+ ``` python
316317set_client_handlers(browser)
317318...
318319def set_client_handlers (browser ):
@@ -350,7 +351,7 @@ Python and Javascript can communicate using inter-process
350351messaging:
351352 - Use the [ JavascriptBindings] ( ../api/JavascriptBindings.md )
352353 class methods to to expose Python functions, objects and properties
353- to Javascript: [ SetFunction] ( ../api/JavascriptBindings.md#setfunctions ) ,
354+ to Javascript: [ SetFunction] ( ../api/JavascriptBindings.md#setfunction ) ,
354355 [ SetObject] ( ../api/JavascriptBindings.md#setobject )
355356 and [ SetProperty] ( ../api/JavascriptBindings.md#setproperty )
356357 - To initiate communication from the Python side call
@@ -381,9 +382,9 @@ messaging:
381382
382383In [ tutorial.py] ( ../examples/tutorial.py ) example you will find
383384example usage of javascript bindings, javascript callbacks
384- and python callbacks. Here is some source code:
385+ and python callbacks. Here is part of its source code:
385386
386- ```
387+ ``` python
387388set_javascript_bindings(browser)
388389...
389390def set_javascript_bindings (browser ):
0 commit comments