QtDatavisualization.py 805 B

12345678910111213141516171819202122
  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 QtDataVisualization classes and functions."""
  9. # Local imports
  10. from . import PYQT5, PYSIDE2, PythonQtError
  11. if PYQT5:
  12. from PyQt5.QtDataVisualization import *
  13. elif PYSIDE2:
  14. # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
  15. import PySide2.QtDataVisualization as __temp
  16. import inspect
  17. for __name in inspect.getmembers(__temp.QtDataVisualization):
  18. globals()[__name[0]] = __name[1]
  19. else:
  20. raise PythonQtError('No Qt bindings could be found')