Example #1
0
 def get_save_image_as_fs(self):
     if self.saveimage_fs is None:
         self.saveimage_fs = self.get_file_save_chooser(
             _("Save Image"),
             self.window,
             image.file_matches())
     return self.saveimage_fs
Example #2
0
    def get_save_hires_image_as_fs(self):
        if self.hires_image_fs is None:
            self.hires_image_fs = self.get_file_save_chooser(
                _("Save High Resolution Image"), self.window,
                image.file_matches())

            rtd_widgets = self.create_rtd_widgets()
            self.hires_image_fs.set_extra_widget(rtd_widgets)

        return self.hires_image_fs
Example #3
0
    def get_save_hires_image_as_fs(self):
        if self.hires_image_fs is None:
            self.hires_image_fs = self.get_file_save_chooser(
                _("Save High Resolution Image"),
                self.window,
                image.file_matches())

            rtd_widgets = self.create_rtd_widgets()
            self.hires_image_fs.set_extra_widget(rtd_widgets)

        return self.hires_image_fs
Example #4
0
 def testFileMatches(self):
     matches = image.file_matches()
     self.assertTrue("*.tga" in matches)
Example #5
0
 def testFileMatches(self):
     matches = image.file_matches()
     self.assertTrue("*.tga" in matches)
Example #6
0
 def get_save_hires_image_as_fs(self):
     if self.hires_image_fs is None:
         self.hires_image_fs = application_widgets.HiresImageSaveChooser(
             self, image.file_matches())
     return self.hires_image_fs
Example #7
0
 def get_save_image_as_fs(self):
     if self.saveimage_fs is None:
         self.saveimage_fs = utils.FileSaveChooser(_("Save Image"), self,
                                                   image.file_matches())
     return self.saveimage_fs