Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bacb635

Browse filesBrowse files
committed
Fix links
1 parent bc4e038 commit bacb635
Copy full SHA for bacb635

File tree

Expand file treeCollapse file tree

3 files changed

+13
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+13
-11
lines changed
Open diff view settings
Collapse file

‎docs/Tutorial.md‎

Copy file name to clipboardExpand all lines: docs/Tutorial.md
+11-10Lines changed: 11 additions & 10 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Run the commands below to install the cefpython3 package, clone
3636
the github repository, enter the examples/ directory and run the
3737
Hello World example:
3838

39-
```
39+
```commandline
4040
pip install cefpython3==56.1
4141
git clone https://github.com/cztomczak/cefpython.git
4242
cd cefpython/examples/
@@ -142,7 +142,7 @@ must be called and if running CEF message loop then it must be
142142
stopped first. In all CEF Python examples you can find such
143143
a line that overwrites the default exception handler in Python:
144144

145-
```
145+
```python
146146
sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error
147147
```
148148

@@ -187,7 +187,7 @@ an external message pump for best performance.
187187

188188
On Windows for best performance a multi-threaded message loop should
189189
be 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)
191191
to True and run a native message loop in your app. Don't call CEF's
192192
message loop. Create browser using `cef.PostTask(cef.TID_UI, cef.CreateBrowserSync, ...)`.
193193
Note 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

244244
To enable debugging set these settings:
245-
```
245+
```python
246246
settings = {
247247
"debug": True,
248248
"log_severity": cef.LOGSEVERITY_WARNING,
@@ -270,7 +270,7 @@ Examples switches:
270270

271271
Example code:
272272

273-
```
273+
```python
274274
switches = {
275275
"enable-media-stream": "",
276276
"proxy-server": "socks5://127.0.0.1:8888",
@@ -310,9 +310,10 @@ underscore in its name.
310310
The [tutorial.py](../examples/tutorial.py) example shows how to
311311
implement client handlers like [DisplayHandler](../api/DisplayHandler.md)
312312
and [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
316317
set_client_handlers(browser)
317318
...
318319
def set_client_handlers(browser):
@@ -350,7 +351,7 @@ Python and Javascript can communicate using inter-process
350351
messaging:
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

382383
In [tutorial.py](../examples/tutorial.py) example you will find
383384
example 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
387388
set_javascript_bindings(browser)
388389
...
389390
def set_javascript_bindings(browser):
Collapse file

‎examples/Examples-README.md‎

Copy file name to clipboardExpand all lines: examples/Examples-README.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ maintained:
2525

2626
- [hello_world.py](hello_world.py): basic example, doesn't require any
2727
third party GUI framework to run
28+
- [tutorial.py](tutorial.py): example from [Tutorial](../docs/Tutorial.md)
2829
- [gtk2.py](gtk2.py): example for [PyGTK](http://www.pygtk.org/)
2930
library (GTK 2)
3031
- [gtk3.py](gtk3.py): example for [PyGObject/PyGI](https://wiki.gnome.org/Projects/PyGObject)
Collapse file

‎examples/tutorial.py‎

Copy file name to clipboardExpand all lines: examples/tutorial.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tutorial example.
1+
# Tutorial example. Doesn't depend on any third party GUI framework.
22
# Tested with CEF Python v56.1+
33

44
from cefpython3 import cefpython as cef

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.