mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 11:49:08 +08:00
Allow viewer package to import without Qt
This commit is contained in:
@@ -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