Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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()