def remove(self, sender): label = self['Label'] if label: self.remove_subview(label) self.labelcounter -= 1