summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias <elias.mueller@mailbox.org>2020-01-02 16:51:23 +0100
committerjaseg <code@jaseg.net>2020-01-03 01:06:36 +0100
commit3205f1b6f8869f2714817d9d93ddadb48c839e83 (patch)
tree0db5b0b4af82a637d391212be665757fb6eacf6c
parentdde7da1aec90597a96033922816564fe42436b42 (diff)
downloadpython-mpv-3205f1b6f8869f2714817d9d93ddadb48c839e83.tar.gz
python-mpv-3205f1b6f8869f2714817d9d93ddadb48c839e83.tar.bz2
python-mpv-3205f1b6f8869f2714817d9d93ddadb48c839e83.zip
Add GTK/OpenGL example (#100)
* Add GTK/OpenGL example
-rw-r--r--README.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 5f6ac01..1d857b6 100644
--- a/README.rst
+++ b/README.rst
@@ -193,8 +193,8 @@ PyQT embedding
win.show()
sys.exit(app.exec_())
-PyGtk embedding
-..............
+PyGObject embedding
+...................
.. code:: python
@@ -237,6 +237,11 @@ Using OpenGL from PyQT
Github user cosven_ has managed to `make mpv render into a Qt widget using OpenGL
<https://gist.github.com/cosven/b313de2acce1b7e15afda263779c0afc>`__ through this python API.
+Using OpenGL from PyGObject
+...........................
+Just like it is possible to render into a Qt widget, it `also is possible to render into a GTK widget
+<https://gist.github.com/trin94/a930f2a13cee1c9fd21cab0393bf4663>`__ through this python API.
+
Coding Conventions
------------------