1 # -----------------------------------------------------------------------------
2 # Copyright © 2019- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtChart classes and functions."""
15 QtModuleNotInstalledError
,
20 from PyQt5
import QtChart
as QtCharts
21 from PyQt5
.QtChart
import *
22 except ModuleNotFoundError
as error
:
23 raise QtModuleNotInstalledError(
25 missing_package
="PyQtChart",
29 from PyQt6
import QtCharts
30 from PyQt6
.QtCharts
import *
31 except ModuleNotFoundError
as error
:
32 raise QtModuleNotInstalledError(
34 missing_package
="PyQt6-Charts",
39 # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
40 import PySide2
.QtCharts
as __temp
41 from PySide2
.QtCharts
import *
43 for __name
in inspect
.getmembers(__temp
.QtCharts
):
44 globals()[__name
[0]] = __name
[1]
46 from PySide6
import QtCharts
47 from PySide6
.QtCharts
import *