File tree 1 file changed +12
-10
lines changed 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- #
2
+ # -----------------------------------------------------------------------------
3
3
# Copyright © 2009- The Spyder Development Team
4
+ #
4
5
# Licensed under the terms of the MIT License
5
6
# (see LICENSE.txt for details)
7
+ # -----------------------------------------------------------------------------
8
+ """Provides QtSvg classes and functions."""
6
9
7
- """
8
- Provides QtSvg classes and functions.
9
- """
10
-
11
- from qtpy import PYQT5 , PYQT4 , PYSIDE , PythonQtError
12
-
10
+ # Local imports
11
+ from qtpy import PYQT4 , PYQT5 , PYSIDE , PythonQtError
13
12
14
13
if PYQT5 :
15
- from PyQt5 .QtSvg import *
14
+ from PyQt5 .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
15
+ QSvgWidget )
16
16
elif PYQT4 :
17
- from PyQt4 .QtSvg import *
17
+ from PyQt4 .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
18
+ QSvgWidget )
18
19
elif PYSIDE :
19
- from PySide .QtSvg import *
20
+ from PySide .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
21
+ QSvgWidget )
20
22
else :
21
23
raise PythonQtError ('No Qt bindings could be found' )
You can’t perform that action at this time.
0 commit comments