garden: add commands to the Garden recipe ~ https://gitlab.com/garden-rs/garden
[git-cola.git] / qtpy / Qt3DLogic.py
blob59077c06471ac42a3f5b9d62a453421dc5e1115b
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', missing_package='PyQt3D'
24 ) from error
25 elif PYQT6:
26 try:
27 from PyQt6.Qt3DLogic import *
28 except ModuleNotFoundError as error:
29 raise QtModuleNotInstalledError(
30 name='Qt3DLogic', missing_package='PyQt6-3D'
31 ) from error
32 elif PYSIDE2:
33 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
34 import PySide2.Qt3DLogic as __temp
35 import inspect
37 for __name in inspect.getmembers(__temp.Qt3DLogic):
38 globals()[__name[0]] = __name[1]
39 elif PYSIDE6:
40 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
41 import PySide6.Qt3DLogic as __temp
42 import inspect
44 for __name in inspect.getmembers(__temp.Qt3DLogic):
45 globals()[__name[0]] = __name[1]