Пример #1
0
 def file_save_as(self, action, parameter):
     filename = dialog.file_dialog(self.win, 'save')
     if filename is not None:
         page_num = self.win.notebook.get_current_page()
         img = self.images[page_num].get_current_img()
         img.save(filename)
         self.images[page_num].set_filename(filename)
         page_num = self.win.notebook.get_current_page()
         self.win.notebook.get_nth_page(page_num).get_tab_label().set_label(path.basename(filename))
         self.images[page_num].set_saved(True)
Пример #2
0
 def file_save_as(self, action, parameter):
     filename = dialog.file_dialog(self.win)
     if filename is not None:
         page_num = self.win.notebook.get_current_page()
         img = self.images[page_num].get_current_img()
         img.save(filename)
         self.images[page_num].set_filename(filename)
         page_num = self.win.notebook.get_current_page()
         self.win.notebook.get_nth_page(page_num).get_tab_label().set_label(path.basename(filename))
         self.images[page_num].set_saved(True)
Пример #3
0
 def open_image(self, action, parameter):
     filename = dialog.file_dialog(self)
     if filename is not None:
         img = Image.open(filename)
         self.editor.add_image(img, filename, 0, True)
         self.create_tab(img, path.basename(filename))
Пример #4
0
 def open_image(self, action, parameter):
     filename = dialog.file_dialog(self)
     if filename is not None:
         img = Image.open(filename)
         self.editor.add_image(img, filename, 0, True)
         self.create_tab(img, path.basename(filename))