1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides Qt3DRender classes and functions."""
15 QtModuleNotInstalledError
,
20 from PyQt5
.Qt3DRender
import *
21 except ModuleNotFoundError
as error
:
22 raise QtModuleNotInstalledError(
23 name
='Qt3DRender', missing_package
='PyQt3D'
27 from PyQt6
.Qt3DRender
import *
28 except ModuleNotFoundError
as error
:
29 raise QtModuleNotInstalledError(
30 name
='Qt3DRender', missing_package
='PyQt6-3D'
33 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
34 import PySide2
.Qt3DRender
as __temp
37 for __name
in inspect
.getmembers(__temp
.Qt3DRender
):
38 globals()[__name
[0]] = __name
[1]
40 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
41 import PySide6
.Qt3DRender
as __temp
44 for __name
in inspect
.getmembers(__temp
.Qt3DRender
):
45 globals()[__name
[0]] = __name
[1]