[PyKDE] Non disappearing label
If I have a frame, inside which I put a label arranged via a vertical layout box, then call this code: contentsFrameLayout = self.contentsFrame.layout() contentsFrameLayout.remove( self.labelWidget ) del self.labelWidget wouldn't I expect the label to disappear off screen? Because it doesn't, and that puzzles me... :o} -- > eatapple core dump ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Non disappearing label
On Monday 10 November 2003 5:56 am, Derek Fountain wrote: > If I have a frame, inside which I put a label arranged via a vertical > layout box, then call this code: > > contentsFrameLayout = self.contentsFrame.layout() > contentsFrameLayout.remove( self.labelWidget ) > del self.labelWidget > > wouldn't I expect the label to disappear off screen? Because it doesn't, > and that puzzles me... :o} The remove() simply removes the widget from the set managed by the layout manager. You need to remove the labelWidget from its parent. See the FAQ entry on deleting the children of QObjects. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Non disappearing label
On Monday 10 November 2003 06:56, Derek Fountain wrote: > If I have a frame, inside which I put a label arranged via a > vertical layout box, then call this code: > > contentsFrameLayout = self.contentsFrame.layout() # what about: self.tableWidget.text('') > contentsFrameLayout.remove( self.labelWidget ) > del self.labelWidget > > wouldn't I expect the label to disappear off screen? Because it > doesn't, and that puzzles me... :o} I don't have any ideas about the reasoning behind this.. Pete ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde