def __init__(self, annotationparam=None): AbstractShape.__init__(self) assert self.LABEL_ANCHOR is not None self.shape = self.create_shape() self.label = self.create_label() self.area_computations_visible = True if annotationparam is None: self.annotationparam = AnnotationParam(_("Annotation"), icon="annotation.png") else: self.annotationparam = annotationparam self.annotationparam.update_annotation(self)
def unselect(self): """Unselect item""" AbstractShape.unselect(self) self.shape.unselect()
def select(self): """Select item""" AbstractShape.select(self) self.shape.select()