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