Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Add explicit imports to QtSvg module #55

Merged
merged 2 commits into from Aug 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 14 additions & 10 deletions qtpy/QtSvg.py
@@ -1,21 +1,25 @@
# -*- coding: utf-8 -*-
#
# -----------------------------------------------------------------------------
# Copyright © 2009- The Spyder Development Team
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)
# -----------------------------------------------------------------------------
"""Provides QtSvg classes and functions."""

"""
Provides QtSvg classes and functions.
"""

from qtpy import PYQT5, PYQT4, PYSIDE, PythonQtError

# Local imports
from qtpy import PYQT4, PYQT5, PYSIDE, PythonQtError

if PYQT5:
from PyQt5.QtSvg import *
from PyQt5.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
QSvgWidget)
elif PYQT4:
from PyQt4.QtSvg import *
from PyQt4.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
QSvgWidget)
elif PYSIDE:
from PySide.QtSvg import *
from PySide.QtSvg import (QGraphicsSvgItem, QSvgGenerator, QSvgRenderer,
QSvgWidget)
else:
raise PythonQtError('No Qt bindings could be found')

del PYQT4, PYQT5, PYSIDE