mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 11:25:30 +08:00
io: Combine qt imports.
This commit is contained in:
@@ -17,7 +17,6 @@ else:
|
||||
QLabel, QWidget, QVBoxLayout, QSlider,
|
||||
QPainter, QColor, QFrame, QLayoutItem)
|
||||
from PyQt4 import QtCore, QtGui
|
||||
from PyQt4.QtCore import Qt
|
||||
from q_color_mixer import MixerPanel
|
||||
from q_histogram import QuadHistogram
|
||||
|
||||
@@ -47,7 +46,7 @@ else:
|
||||
self.img = QImage(arr.data, arr.shape[1], arr.shape[0],
|
||||
arr.strides[0], QImage.Format_RGB888)
|
||||
self.pm = QPixmap.fromImage(self.img)
|
||||
self.setAlignment(Qt.AlignTop)
|
||||
self.setAlignment(QtCore.Qt.AlignTop)
|
||||
self.setPixmap(self.pm)
|
||||
self.setAlignment(QtCore.Qt.AlignTop)
|
||||
self.setMinimumSize(100, 100)
|
||||
|
||||
Reference in New Issue
Block a user