mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-28 13:20:14 +08:00
Allow viewer package to import without Qt
This commit is contained in:
1 parent
68508576f6
commit
8d40cbd1d2
1 file changed
+3
-4
@@ -1,6 +1,5 @@
|
||||
import warnings
|
||||
try:
|
||||
from .qt import QtGui as _QtGui
|
||||
from .viewers import ImageViewer, CollectionViewer
|
||||
except ImportError as e:
|
||||
raise ImportError('Viewer requires Qt')
|
||||
|
||||
from .viewers import ImageViewer, CollectionViewer
|
||||
warnings.warn('Viewer requires Qt')
|
||||
Reference in new issue
Block a user