Skip to content

Commit 680f945

Browse files
committed
Add explicit imports to QtSvg module
1 parent 16e444d commit 680f945

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

qtpy/QtSvg.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
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

1413
if PYQT5:
15-
from PyQt5.QtSvg import *
14+
from PyQt5.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
15+
QSvgWidget)
1616
elif PYQT4:
17-
from PyQt4.QtSvg import *
17+
from PyQt4.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
18+
QSvgWidget)
1819
elif PYSIDE:
19-
from PySide.QtSvg import *
20+
from PySide.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
21+
QSvgWidget)
2022
else:
2123
raise PythonQtError('No Qt bindings could be found')

0 commit comments

Comments
 (0)