def on_settings_textChanged(self): self.changes['settings'] = json.loads(self.settings.toPlainText())
def on_content_textChanged(self): self.changes['grammar'] = json.loads(self.content.toPlainText())