git-cola v4.9.0
[git-cola.git] / qtpy / Qt3DLogic.py
blob3fea3f51373a1bdf26787ac223fe400349ef945f
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 Qt3DLogic classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtModuleNotInstalledError,
18 if PYQT5:
19 try:
20 from PyQt5.Qt3DLogic import *
21 except ModuleNotFoundError as error:
22 raise QtModuleNotInstalledError(
23 name="Qt3DLogic",
24 missing_package="PyQt3D",
25 ) from error
26 elif PYQT6:
27 try:
28 from PyQt6.Qt3DLogic import *
29 except ModuleNotFoundError as error:
30 raise QtModuleNotInstalledError(
31 name="Qt3DLogic",
32 missing_package="PyQt6-3D",
33 ) from error
34 elif PYSIDE2:
35 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
36 import inspect
38 import PySide2.Qt3DLogic as __temp
40 for __name in inspect.getmembers(__temp.Qt3DLogic):
41 globals()[__name[0]] = __name[1]
42 elif PYSIDE6:
43 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
44 import inspect
46 import PySide6.Qt3DLogic as __temp
48 for __name in inspect.getmembers(__temp.Qt3DLogic):
49 globals()[__name[0]] = __name[1]