mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 06:14:18 +08:00
Merge pull request #895 from blink1073/fix-canny-py3k
Improve py3k compatibility for Viewer core widget and OverlayPlugin.
This commit is contained in:
@@ -45,7 +45,7 @@ class OverlayPlugin(Plugin):
|
||||
self._overlay_plot = None
|
||||
self._overlay = None
|
||||
self.cmap = None
|
||||
self.color_names = self.colors.keys()
|
||||
self.color_names = list(self.colors.keys())
|
||||
|
||||
def attach(self, image_viewer):
|
||||
super(OverlayPlugin, self).attach(image_viewer)
|
||||
|
||||
@@ -232,7 +232,7 @@ class ComboBox(BaseWidget):
|
||||
self.name_label.setAlignment(QtCore.Qt.AlignLeft)
|
||||
|
||||
self._combo_box = QtGui.QComboBox()
|
||||
self._combo_box.addItems(items)
|
||||
self._combo_box.addItems(list(items))
|
||||
|
||||
self.layout = QtGui.QHBoxLayout(self)
|
||||
self.layout.addWidget(self.name_label)
|
||||
|
||||
Reference in New Issue
Block a user