On 9/17/2007 4:59 PM, John Wheez wrote:

Is there a function in pyQt which will iterate over the existing QlineEdit
widgets and make a list/dictionary with the widget name and it's current text?

dict((unicode(w.objectName()), unicode(w.text()))
     for w in mainwidget.findChildren(QLineEdit)))
--
Giovanni Bajo

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to