parameters: (self, canvas, target, target_curve)
docstring: :param target: A reference to the label being edited
          :param target_curve: A reference to the curve whose legend is being edited
docstring_summary: :param target: A reference to the label being edited
          :param target_curve: A reference to the curve whose legend is being edited
docstring_tokens: : param target : A reference to the label being edited : param target_curve : A reference to the curve whose legend is being edited
function: def __init__(self, canvas, target, target_curve):
          """
          :param target: A reference to the label being edited
          :param target_curve: A reference to the curve whose legend is being edited
         """
          super().__init__('labeleditor.ui', canvas)
          self.ui.errors.hide()
  
          self.target = target
          self.target_curve = target_curve
          self._memento = LegendEditorModel(target.get_text())
          self.ui.editor.setText(self._memento.label_text)
function_tokens: def __init__ ( self , canvas , target , target_curve ) : super ( ) . __init__ ( 'labeleditor.ui' , canvas ) self . ui . errors . hide ( ) self . target = target self . target_curve = target_curve self . _memento = LegendEditorModel ( target . get_text ( ) ) self . ui . editor . setText ( self . _memento . label_text )