def create_cache_pixbuf(self):
     image_path = cache_manager.get_image(self.image_object, try_web = False)
     
     if image_path != None:
         self.is_downloaded = os.path.exists(self.download_dir + "/" +  image_path.split("/")[-1])
         if self.is_downloaded:
             self.image_path = self.download_dir + "/" +  image_path.split("/")[-1]
     
     self.pixbuf, self.is_loaded = cache_manager.get_image_pixbuf(self.image_object)
예제 #2
0
    def create_cache_pixbuf(self):
        image_path = cache_manager.get_image(self.image_object, try_web=False)

        if image_path != None:
            self.is_downloaded = os.path.exists(self.download_dir + "/" +
                                                image_path.split("/")[-1])
            if self.is_downloaded:
                self.image_path = self.download_dir + "/" + image_path.split(
                    "/")[-1]

        self.pixbuf, self.is_loaded = cache_manager.get_image_pixbuf(
            self.image_object)
예제 #3
0
 def start_mission(self):
     image_path = cache_manager.get_image(self.image_object, try_web=True)
     if image_path:
         self.delay_render_image(image_path)
 def start_mission(self):    
     image_path = cache_manager.get_image(self.image_object, try_web=True)
     if image_path:
         self.delay_render_image(image_path)