'Process the data from clipboard'

@Slot()
def process(self):

    var_name = self.name_edt.text()
    try:
        self.var_name = str(var_name)
    except UnicodeEncodeError:
        self.var_name = to_text_string(var_name)
    if self.text_widget.get_as_data():
        self.clip_data = self._get_table_data()
    elif self.text_widget.get_as_code():
        self.clip_data = try_to_eval(to_text_string(self._get_plain_text()))
    else:
        self.clip_data = to_text_string(self._get_plain_text())
    self.accept()
