mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-15 11:25:53 +08:00
Add skimage.viewer.qt wrapper.
This allows the viewer to use either PyQt4 or PySide as the toolkit.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import numpy as np
|
||||
|
||||
try:
|
||||
from PyQt4 import QtGui
|
||||
except ImportError:
|
||||
print("Could not import PyQt4 -- skimage.viewer not available.")
|
||||
from ..qt import QtGui
|
||||
|
||||
from ..utils import new_plot
|
||||
from .base import Plugin
|
||||
|
||||
Reference in New Issue
Block a user