mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 02:30:48 +08:00
a5d42a3940
This allows the viewer to use either PyQt4 or PySide as the toolkit.
12 lines
221 B
Python
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
|