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 QtDataVisualization classes and functions."""
15 QtModuleNotInstalledError
,
20 from PyQt5
.QtDataVisualization
import *
21 except ModuleNotFoundError
as error
:
22 raise QtModuleNotInstalledError(
23 name
='QtDataVisualization', missing_package
='PyQtDataVisualization'
27 from PyQt6
.QtDataVisualization
import *
28 except ModuleNotFoundError
as error
:
29 raise QtModuleNotInstalledError(
30 name
='QtDataVisualization',
31 missing_package
='PyQt6-DataVisualization',
34 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
35 import PySide2
.QtDataVisualization
as __temp
38 for __name
in inspect
.getmembers(__temp
.QtDataVisualization
):
39 globals()[__name
[0]] = __name
[1]
41 from PySide6
.QtDataVisualization
import *