Files
scikit-image/skimage/viewer/qt/QtGui.py
T
Tony S Yu a5d42a3940 Add skimage.viewer.qt wrapper.
This allows the viewer to use either PyQt4 or PySide as the toolkit.
2013-05-17 16:22:17 -05:00

12 lines
221 B
Python

from . import qt_api
if qt_api == 'pyside':
from PySide.QtGui import *
elif qt_api == 'pyqt':
from PyQt4.QtGui import *
else:
# Mock objects
QMainWindow = object
QDialog = object
QWidget = object