Hi, thank you all of you for your help, I solve my problem with Matteo code. Regards,
On 9 August 2010 10:00, Matteo Bertozzi <[email protected]> wrote: > On Sun, 2010-08-08 at 23:59 +0100, starglider develop wrote: > > Hi, > > I have a layout and need to remove all the widgets in the layout > > to populate with other widget, > > but didn't find a way of doing that. > > Any ideas. > > > > def clearLayout(layout): > while layout.count() > 0: > item = layout.takeAt(0) > if not item: > continue > > w = item.widget() > if w: > w.deleteLater() > >
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
