Exemple #1
0
 def setup_method(self, method):
     gaupol.conf.editor.custom_font = "monospace"
     gaupol.conf.editor.length_unit = gaupol.length_units.CHAR
     gaupol.conf.editor.use_custom_font = True
     text = "etaoin shrdlu etaoin shrdlu etaoin shrdlu etaoin shrdlu"
     self.dialog = gaupol.TextEditDialog(Gtk.Window(), text)
     self.dialog.show()
 def run_dialog__sans(self):
     gaupol.conf.editor.custom_font = "sans"
     gaupol.conf.editor.use_custom_font = True
     self.dialog.destroy()
     self.dialog = gaupol.TextEditDialog(Gtk.Window(), self.text)
     self.dialog.run()
     self.dialog.destroy()
Exemple #3
0
 def _on_edit_button_clicked(self, *args):
     """Edit the current text in a separate dialog."""
     text = self._checker.get_text()
     dialog = gaupol.TextEditDialog(self._dialog, text)
     response = gaupol.util.run_dialog(dialog)
     text = dialog.get_text()
     dialog.destroy()
     if response != Gtk.ResponseType.OK: return
     self._checker.set_text(text)
     self._advance()
 def setup_method(self, method):
     gaupol.conf.editor.length_unit = gaupol.length_units.CHAR
     self.text = "etaoin shrdlu etaoin shrdlu etaoin shrdlu etaoin shrdlu"
     self.dialog = gaupol.TextEditDialog(Gtk.Window(), self.text)
     self.dialog.show()
Exemple #5
0
 def setup_method(self, method):
     text = "etaoin shrdlu etaoin shrdlu etaoin shrdlu"
     self.dialog = gaupol.TextEditDialog(Gtk.Window(), text)
     self.dialog.show()