View Single Post
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#15
Originally Posted by pelago View Post
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?
Just tried this, and it does not work. you end up appending the same pushbutton into the array, rather than an instance of the qpushbutton. This has got me curious
__________________
N900_Email_Options Wiki Page