setup.cfg: specify docs directly instead of going through a symlink
[git-cola.git] / qtpy / QtDataVisualization.py
blobcfb2b3b6b90bff2e5c75c1521d7fd76dafe085c7
1 # -*- coding: utf-8 -*-
2 # -----------------------------------------------------------------------------
3 # Copyright © 2009- The Spyder Development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
7 # -----------------------------------------------------------------------------
8 """Provides QtDataVisualization classes and functions."""
10 # Local imports
11 from . import PYQT5, PYSIDE2, PythonQtError
13 if PYQT5:
14 from PyQt5.QtDataVisualization import *
15 elif 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]
21 else:
22 raise PythonQtError('No Qt bindings could be found')