def setup_method(self, method): gaupol.conf.search.max_history = 2 gaupol.conf.editor.use_custom_font = True gaupol.conf.editor.custom_font = "sans" self.application = self.new_application() self.dialog = gaupol.SearchDialog(self.application) self.dialog.show()
def _on_find_and_replace_activate(self, *args): """Search for and replace text.""" if self._search_dialog is not None: return self._search_dialog.present() self._search_dialog = gaupol.SearchDialog(self.window, self) aeidon.util.connect(self, "_search_dialog", "response") # Do not destroy the dialog, but rather hide based on response. self._search_dialog.connect("delete-event", lambda *args: True) self._search_dialog.show()
def setup_method(self, method): self.application = self.new_application() self.dialog = gaupol.SearchDialog(self.application.window, self.application) self.dialog.show()