File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- #
2+ # -----------------------------------------------------------------------------
33# Copyright © 2009- The Spyder Development Team
4+ #
45# Licensed under the terms of the MIT License
56# (see LICENSE.txt for details)
7+ # -----------------------------------------------------------------------------
8+ """Provides QtSvg classes and functions."""
69
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
1312
1413if PYQT5 :
15- from PyQt5 .QtSvg import *
14+ from PyQt5 .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
15+ QSvgWidget )
1616elif PYQT4 :
17- from PyQt4 .QtSvg import *
17+ from PyQt4 .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
18+ QSvgWidget )
1819elif PYSIDE :
19- from PySide .QtSvg import *
20+ from PySide .QtSvg import (QGraphicsSvgItem , QSvgGenerator , QSvgRenderer ,
21+ QSvgWidget )
2022else :
2123 raise PythonQtError ('No Qt bindings could be found' )
24+
25+ del PYQT4 , PYQT5 , PYSIDE
You can’t perform that action at this time.
0 commit comments