Hi, I'm not the OP but I'm trying to learn PyQt. Do you mean that Code: tempPushButton = QtGui.QPushButton() MainWindow.ledArray[r].append(tempPushButton) is the thing to do? Is there a reference as to why the first form is incorrect?
tempPushButton = QtGui.QPushButton() MainWindow.ledArray[r].append(tempPushButton)