Fix bug in LayoutWidget.py

getWidget tries to get self.row which doesn't exist, get self.rows instead
This commit is contained in:
cjtk 2014-12-31 10:32:36 +11:00
parent bea4f88335
commit ef6cd9be88

View File

@ -75,7 +75,7 @@ class LayoutWidget(QtGui.QWidget):
def getWidget(self, row, col):
"""Return the widget in (*row*, *col*)"""
return self.row[row][col]
return self.rows[row][col]
#def itemIndex(self, item):
#for i in range(self.layout.count()):