def _label_drawing_changed(self, old, new):
if old is not None:<EOL><INDENT>self.component.remove(old)<EOL><DEDENT>if new is not None:<EOL><INDENT>self.component.add(new)<EOL><DEDENT>w, h = self.component.bounds<EOL>self.component.position = [ self.pos[<NUM_LIT:0>] - (w/<NUM_LIT:2>), self.pos[<NUM_LIT:1>] - (h/<NUM_LIT:2>) ]<EOL><INDENT>self.component.position = list( self.pos )<EOL><DEDENT>self.component.request_redraw()<EOL>
Handles the container of label components changing.