Merge pull request #1146 from mmargoliono/stage-selected-lines-on-untracked-file
[git-cola.git] / qtpy / QtCharts.py
blob74671230f8d59b40e16ad56086094c5c72069143
1 # -*- coding: utf-8 -*-
2 # -----------------------------------------------------------------------------
3 # Copyright © 2019- The Spyder Development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
7 # -----------------------------------------------------------------------------
8 """Provides QtChart classes and functions."""
10 # Local imports
11 from . import PYQT5, PYSIDE2, PythonQtError
13 if PYQT5:
14 try:
15 from PyQt5 import QtChart as QtCharts
16 except ImportError:
17 raise PythonQtError('The QtChart module was not found. '
18 'It needs to be installed separately for PyQt5.')
19 elif PYSIDE2:
20 from PySide2.QtCharts import *
21 else:
22 raise PythonQtError('No Qt bindings could be found')