github/workflows: update the darwin build for setuptools
[git-cola.git] / qtpy / Qt3DRender.py
blobf30331ae170a587c4c356af96925ee90c12cdd1b
1 # -*- coding: utf-8 -*-
2 # -----------------------------------------------------------------------------
3 # Copyright © 2009- The Spyder Development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
7 # -----------------------------------------------------------------------------
8 """Provides Qt3DRender classes and functions."""
10 # Local imports
11 from . import PYQT5, PYSIDE2, PythonQtError, PYSIDE_VERSION
12 from .py3compat import PY2
14 if PYQT5:
15 from PyQt5.Qt3DRender import *
16 elif PYSIDE2:
17 if not PY2 or (PY2 and PYSIDE_VERSION < '5.12.4'):
18 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
19 import PySide2.Qt3DRender as __temp
20 import inspect
21 for __name in inspect.getmembers(__temp.Qt3DRender):
22 globals()[__name[0]] = __name[1]
23 else:
24 raise PythonQtError('A bug in Shiboken prevents this')
25 else:
26 raise PythonQtError('No Qt bindings could be found')