'Create a new TextAnnotation at with `rect` as the geometry.'

def createNewAnnotation(self, rect):

    annot = scheme.SchemeTextAnnotation(rect_to_tuple(rect))
    font = {'family': str(self.font.family()), 'size': self.font.pixelSize()}
    annot.set_font(font)
    item = self.scene.add_annotation(annot)
    item.setTextInteractionFlags(Qt.TextEditorInteraction)
    item.setFramePen(QPen(Qt.DashLine))
    self.annotation_item = item
    self.annotation = annot
    self.control = controlpoints.ControlPointRect()
    self.control.rectChanged.connect(self.annotation_item.setGeometry)
    self.scene.addItem(self.control)
