2010-07-22, 00:23
If I have two or more labels like so:
How do I remove all labels?
If I write self.removeControl(self.strAction), it only seems to remove the last label made.
Code:
self.strAction = xbmcgui.ControlLabel(100, 100, 120, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strAction)
self.strAction.setLabel('Hello!')
self.strAction = xbmcgui.ControlLabel(100, 200, 120, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strAction)
self.strAction.setLabel('Hello! Part 2')
How do I remove all labels?
If I write self.removeControl(self.strAction), it only seems to remove the last label made.