Qt3DAnimation.py 972 B

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