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 #49
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Aug 3, 2016
1 parent 6f2cbac commit 90fe0f2
Show file tree
Hide file tree
Showing 2 changed files with 25 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
12 changes: 12 additions & 0 deletions qtpy/tests/test_qtmultimedia.py
@@ -0,0 +1,12 @@
from __future__ import absolute_import

from qtpy import QtMultimedia


def test_qtmultimedia():
"""Test the qtpy.QtMultimedia namespace"""
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 90fe0f2

Please sign in to comment.