Fix bug in LayoutWidget.py
getWidget tries to get self.row which doesn't exist, get self.rows instead
This commit is contained in:
parent
bea4f88335
commit
ef6cd9be88
@ -75,7 +75,7 @@ class LayoutWidget(QtGui.QWidget):
|
|||||||
|
|
||||||
def getWidget(self, row, col):
|
def getWidget(self, row, col):
|
||||||
"""Return the widget in (*row*, *col*)"""
|
"""Return the widget in (*row*, *col*)"""
|
||||||
return self.row[row][col]
|
return self.rows[row][col]
|
||||||
|
|
||||||
#def itemIndex(self, item):
|
#def itemIndex(self, item):
|
||||||
#for i in range(self.layout.count()):
|
#for i in range(self.layout.count()):
|
||||||
|
Loading…
Reference in New Issue
Block a user