Example #1
0
    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()
Example #2
0
 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()
Example #3
0
 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()