hello list,<div><br></div><div>i have encountered an issue that i have reduced to this sample code:</div><div><br></div><div><div>if __name__ == '__main__':</div><div> import sys</div><div> from PyQt4.QtGui import QLabel</div>
<div> from PyQt4.QtCore import QTimer</div><div> from PyQt4.QtGui import QApplication</div><div> app = QApplication(sys.argv)</div><div> for i in range(3):</div><div> l = QLabel('%d' % i)</div><div>
l.show()</div><div> QTimer.singleShot(5000, app.quit)</div><div> app.exec_()</div><div><br></div><div>because i'm using the same variable to reference the instances, only one instance remains (the last one) which is not really what i expect.</div>
<div><br></div><div>what is the way to create several widgets in a loop? thanks.</div><br>-- <br>victor<br>
</div>