[OT] Re: [PyKDE] Deleting a layout in PyQt as opposed to Qt...

2007-02-28 Thread Hans-Peter Jansen
[Since this is essentially off topic, it's intentionally top posted!] Hi Giovanni, did I already told you, that I LOVE your contributions to this project and list! While nobody will be able to beat Phils S/N ratio ever, David Boddie and you are my personal PyQt heros. Pete Am Mittwoch, 28. Fe

Re: [PyKDE] Deleting a layout in PyQt as opposed to Qt...

2007-02-28 Thread Giovanni Bajo
On 28/02/2007 12.17, Sundance wrote: Am I missing something? Is this an oversight in PyQt, or is there a nice, clean Python equivalent that I've overlooked? With recent versions of SIP, you can do: import sip sip.delete(widget.layout()) = Otherwise, if you're bound to an old

[PyKDE] Deleting a layout in PyQt as opposed to Qt...

2007-02-28 Thread Sundance
Hi peeps, The Qt documentation informs us that the proper way to replace the layout on a widget is to first delete the current layout and then install a new one. Setting a new layout before the previous one is deleted won't work. All fine and dandy. The C++ syntax for removing a widget's layou