Merge pull request #1222 from campagnola/spw-fix
py3 fix for ScatterPlotWidget.setSelectedFields
This commit is contained in:
commit
0e62913b88
@ -96,7 +96,7 @@ class ScatterPlotWidget(QtGui.QSplitter):
|
|||||||
try:
|
try:
|
||||||
self.fieldList.clearSelection()
|
self.fieldList.clearSelection()
|
||||||
for f in fields:
|
for f in fields:
|
||||||
i = self.fields.keys().index(f)
|
i = list(self.fields.keys()).index(f)
|
||||||
item = self.fieldList.item(i)
|
item = self.fieldList.item(i)
|
||||||
item.setSelected(True)
|
item.setSelected(True)
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user