diff --git a/docs/Tutorial.md b/docs/Tutorial.md index c6c0fcf7..ea32cb42 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -9,7 +9,8 @@ basics. This tutorial will discuss the three featured examples: [hello_world.py](../examples/hello_world.py), [tutorial.py](../examples/tutorial.py) and [screenshot.py](../examples/screenshot.py). There are many -more examples that you can find in the [README-examples.md](../examples/README-examples.md) +more examples that you can find in the +[README-examples.md](../examples/README-examples.md) file, but these examples are out of scope for this tutorial. diff --git a/examples/README-examples.md b/examples/README-examples.md index 0f0ef9a4..4ef36045 100644 --- a/examples/README-examples.md +++ b/examples/README-examples.md @@ -4,8 +4,8 @@ Table of contents: * [Hello World!](#hello-world) * [Supported examples](#supported-examples) * [Featured](#featured) - * [GUI frameworks](#gui-frameworks) * [Snippets](#snippets) + * [GUI frameworks](#gui-frameworks) * [Build executable with PyInstaller](#build-executable-with-pyinstaller) * [Unit tests](#unit-tests) * [Other examples](#other-examples) @@ -42,8 +42,31 @@ workarounds. discussed in great details in Tutorial in the [Off-screen rendering](../docs/Tutorial.md#off-screen-rendering) section. + +### Snippets + +See small code snippets that show various CEF features in the +[examples/snippets/](snippets/) directory: + +- [javascript_bindings.py](snippets/javascript_bindings.py) - Communicate + between Python and Javascript asynchronously using + inter-process messaging with the use of Javascript Bindings. +- [javascript_errors.py](snippets/javascript_errors.py) - Two ways for + intercepting Javascript errors. +- [mouse_clicks.py](snippets/mouse_clicks.py) - Perform mouse clicks + and mouse movements programmatically. +- [network_cookies.py](snippets/network_cookies.py) - Implement + interfaces to block or allow cookies over network requests. +- [onbeforeclose.py](snippets/onbeforeclose.py) - Implement interface + to execute custom code before browser window closes. +- [ondomready.py](snippets/ondomready.py) - Execute custom Python code + on a web page as soon as DOM is ready. + + ### GUI frameworks +Examples of embedding CEF browser using various GUI frameworks: + - [gtk2.py](gtk2.py): example for [PyGTK](http://www.pygtk.org/) library (GTK 2) - [gtk3.py](gtk3.py): example for [PyGObject / PyGI](https://wiki.gnome.org/Projects/PyGObject) @@ -64,22 +87,6 @@ workarounds. toolkit. This example implements High DPI support on Windows. -### Snippets - -See small code snippets that test various features in the -[examples/snippets/](snippets/) directory: - -- [javascript_bindings.py](snippets/javascript_bindings.py) - Communicate - between Python and Javascript asynchronously using - inter-process messaging with the use of Javascript Bindings. -- [mouse_clicks.py](snippets/mouse_clicks.py) - Perform mouse clicks - and mouse movements programmatically. -- [network_cookies.py](snippets/network_cookies.py) - Implement - interfaces to block or allow cookies over network requests. -- [onbeforeclose.py](snippets/onbeforeclose.py) - Implement interface - to execute custom code before browser window closes. - - ### Build executable with PyInstaller - [PyInstaller example](pyinstaller/README-pyinstaller.md): diff --git a/examples/snippets/javascript_bindings.py b/examples/snippets/javascript_bindings.py index 7c7dccc5..63135463 100644 --- a/examples/snippets/javascript_bindings.py +++ b/examples/snippets/javascript_bindings.py @@ -17,7 +17,6 @@ + +
+