Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def unselect(self):
     """Unselect item"""
     AbstractShape.unselect(self)
     self.shape.unselect()
Esempio n. 4
0
 def select(self):
     """Select item"""
     AbstractShape.select(self)
     self.shape.select()
Esempio n. 5
0
 def unselect(self):
     """Unselect item"""
     AbstractShape.unselect(self)
     self.shape.unselect()
Esempio n. 6
0
 def select(self):
     """Select item"""
     AbstractShape.select(self)
     self.shape.select()