'Text has changed'

def text_changed(self):

    if self.is_binary:
        self.text = to_binary_string(self.edit.toPlainText(), 'utf8')
    else:
        self.text = to_text_string(self.edit.toPlainText())
