Skip to content

Commit

Permalink
qtpy: add support for qtpy.QtMultimedia
Browse files Browse the repository at this point in the history
Add a wrapper around QtMultimedia to provide access to QAudio, QSound
and friends.

Closes spyder-ide#49
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Aug 3, 2016
1 parent 0a2583d commit 8fffb97
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions qtpy/QtMultimedia.py
@@ -0,0 +1,13 @@
from qtpy import PYQT5
from qtpy import PYQT4
from qtpy import PYSIDE


if PYQT5:
from PyQt5.QtMultimedia import *
elif PYQT4:
from PyQt4.QtMultimedia import *
from PyQt4.QtGui import QSound
elif PYSIDE:
from PySide.QtMultimedia import *
from PySide.QtGui import QSound
11 changes: 11 additions & 0 deletions qtpy/tests/test_qtmultimedia.py
@@ -0,0 +1,11 @@
from __future__ import absolute_import

from qtpy import QtMultimedia


def test_qtmultimedia():
assert QtMultimedia.QAbstractVideoBuffer is not None
assert QtMultimedia.QAudio is not None
assert QtMultimedia.QAudioDeviceInfo is not None
assert QtMultimedia.QAudioInput is not None
assert QtMultimedia.QSound is not None

0 comments on commit 8fffb97

Please sign in to comment.