tox: start revamping tox setup
[git-cola.git] / qtpy / QtSvg.py
blobedc075eac83f71147c15b55e77f5baa27fc8f882
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 QtSvg classes and functions."""
10 # Local imports
11 from . import PYQT4, PYSIDE2, PYQT5, PYSIDE, PythonQtError
13 if PYQT5:
14 from PyQt5.QtSvg import *
15 elif PYSIDE2:
16 from PySide2.QtSvg import *
17 elif PYQT4:
18 from PyQt4.QtSvg import *
19 elif PYSIDE:
20 from PySide.QtSvg import *
21 else:
22 raise PythonQtError('No Qt bindings could be found')
24 del PYQT4, PYQT5, PYSIDE, PYSIDE2