mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 05:05:33 +08:00
a5d42a3940
This allows the viewer to use either PyQt4 or PySide as the toolkit.
10 lines
170 B
Python
10 lines
170 B
Python
from . import qt_api
|
|
|
|
if qt_api == 'pyside':
|
|
from PySide.QtCore import *
|
|
elif qt_api == 'pyqt':
|
|
from PyQt4.QtCore import *
|
|
else:
|
|
# Mock objects
|
|
Qt = None
|