def _on_save_all_documents_as_activate(self, *args): """Save all open documents with different properties.""" modes = [] for page in self.pages: if page.project.main_file is not None: modes.append(page.project.main_file.mode) dialog = gaupol.MultiSaveDialog(self.window, self, modes) gaupol.util.flash_dialog(dialog) self.update_gui()
def setup_method(self, method): self.application = self.new_application() self.application.add_page(self.new_page()) self.application.add_page(self.new_page()) modes = [x.project.main_file.mode for x in self.application.pages] self.dialog = gaupol.MultiSaveDialog(parent=Gtk.Window(), application=self.application, modes=modes) self.dialog.show()
def setup_method(self, method): self.application = self.new_application() self.application.add_page(self.new_page()) self.application.add_page(self.new_page()) self.dialog = gaupol.MultiSaveDialog(Gtk.Window(), self.application) self.dialog.show()
def _on_save_all_documents_as_activate(self, *args): """Save all open documents with different properties.""" dialog = gaupol.MultiSaveDialog(self.window, self) gaupol.util.flash_dialog(dialog) self.update_gui()