|
| 1 | +# Examples |
| 2 | + |
| 3 | +Table of contents: |
| 4 | +* [Supported examples](#supported-examples) |
| 5 | +* [More examples](#more-examples) |
| 6 | + |
| 7 | + |
| 8 | +## Supported examples |
| 9 | + |
| 10 | +Examples provided in the examples/ root directory are actively |
| 11 | +maintained: |
| 12 | + |
| 13 | +- [gtk2.py](gtk2.py): example for [PyGTK](http://www.pygtk.org/) |
| 14 | + library (GTK 2) |
| 15 | +- [gtk3.py](gtk3.py): example for [PyGObject/PyGI] |
| 16 | + (https://wiki.gnome.org/Projects/PyGObject) library (GTK 3). |
| 17 | + Currently broken on Linux/Mac, see top comments in sources. |
| 18 | +- [hello_world.py](hello_world.py): doesn't require any third party |
| 19 | + GUI framework |
| 20 | +- [qt4.py](qt4.py): example for [PyQt4](https://wiki.python.org/moin/PyQt4) |
| 21 | + and [PySide](https://wiki.qt.io/PySide) libraries (Qt 4) |
| 22 | +- [tkinter_.py](tkinter_.py): example for [Tkinter] |
| 23 | + (https://wiki.python.org/moin/TkInter). Currently broken on Mac. |
| 24 | +- [wxpython.py](wxpython.py): example for wxPython |
| 25 | + |
| 26 | +If there are any issues in examples read top comments in sources |
| 27 | +to see whether this is a known issue with available workarounds. |
| 28 | + |
| 29 | + |
| 30 | +## More examples |
| 31 | + |
| 32 | +There are even more examples available, some of them are externally |
| 33 | +maintained. |
| 34 | + |
| 35 | +- Kivy framework: |
| 36 | + see [Kivy](https://github.com/cztomczak/cefpython/wiki/Kivy) wiki page. |
| 37 | +- Panda3D game engine: |
| 38 | + see [Panda3D](https://github.com/cztomczak/cefpython/wiki/Panda3D) wiki page. |
| 39 | +- PyGame/PyOpenGL: |
| 40 | + see [gist by AnishN](https://gist.github.com/AnishN/aa3bb27fc9d69319955ed9a8973cd40f) |
| 41 | +- Screenshot example: |
| 42 | + see [gist by stefanbacon](https://gist.github.com/stefanbacon/7b1571d57aee54aa9f8e9021b4848d06) |
| 43 | +- Old PyWin32 example: |
| 44 | + see [pywin32.py](https://github.com/cztomczak/cefpython/blob/cefpython31/cefpython/cef3/windows/binaries_32bit/pywin32.py) |
| 45 | + in the cefpython31 branch |
| 46 | + |
| 47 | +There are ongoing efforts to add these examples to the official examples/ |
| 48 | +directory, see issues in the tracker. |
0 commit comments