def setup_method(self, method): gaupol.conf.editor.use_custom_font = True gaupol.conf.editor.custom_font = "monospace" gaupol.conf.line_break.max_length = 10 gaupol.conf.line_break.use_skip_max_length = False gaupol.conf.line_break.use_skip_max_lines = False gaupol.conf.text_assistant.pages = ["common-error"] self.application = self.new_application() self.assistant = gaupol.TextAssistant(self.application.window, self.application) self.assistant.show()
def _on_correct_texts_activate(self, *args): """Find and correct errors in texts.""" gaupol.util.set_cursor_busy(self.window) assistant = gaupol.TextAssistant(self.window, self) gaupol.util.set_cursor_normal(self.window) assistant.show()
def setup_method(self, method): gaupol.conf.text_assistant.pages = ["common-error"] self.application = self.new_application() self.assistant = gaupol.TextAssistant(self.application.window, self.application) self.assistant.show()