Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for QtMultimedia #50

Merged
merged 1 commit into from Aug 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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