Exemple #1
0
 def __resize(self):
     # rezise image
     self.__set_status_bar(label.MUM_PROGDIALOG_IMAGE)
     gtk.gdk.threads_enter()
     gtk.gdk.threads_leave()
     thumb = mthumb(self.source_album,
                    os.path.join(self.dest_album,constants.DIR_RESIZE),
                    constants.IMAGE_SIZES[self.resolution])
     while self.__attendi() and thumb.next():
         gtk.gdk.threads_enter()
         self.progressbar.set_fraction(self.count/self.total)
         gtk.gdk.threads_leave()
         self.count +=1
Exemple #2
0
 def __create_thumb(self):
     # create thumb
     self.__set_status_bar(label.MUM_PROGDIALOG_THUMB)
     gtk.gdk.threads_enter()
     self.progressbar.set_fraction(self.count/self.total)
     gtk.gdk.threads_leave()
     thumb = mthumb(self.source_album,
                    os.path.join(self.dest_album,constants.DIR_THUMB),
                    constants.IMAGE_SIZES[0])
     while self.__attendi() and thumb.next():
         gtk.gdk.threads_enter()
         self.progressbar.set_fraction(self.count/self.total)
         gtk.gdk.threads_leave()
         self.count +=1