RE: [PyQt] Completely removing items from a layout

2009-11-28 Thread Lee Harr
> you need to delete both the layouts and their contents: > >    def unfill(self): >    def deleteItems(layout): >    if layout is not None: >    while layout.count(): >    item = layout.takeAt(0) >    widget = item.widget() >

Re: [PyQt] Completely removing items from a layout

2009-11-28 Thread Baz Walter
Lee Harr wrote: I wrote about this a couple of weeks ago, but I did not have a small working example to show the problem I'm having. Now I do. I have a layout created in Qt4 Designer which I fill with a series of complex layouts at runtime. That works great. Later on, I want to completely remov

[PyQt] Completely removing items from a layout

2009-11-27 Thread Lee Harr
I wrote about this a couple of weeks ago, but I did not have a small working example to show the problem I'm having. Now I do. I have a layout created in Qt4 Designer which I fill with a series of complex layouts at runtime. That works great. Later on, I want to completely remove all of them and