7 class ImageStore(object):
16 "generic_background": "radiobackground_01.png",
17 "night_temple_background": "radiobackground_02.png",
18 "day_temple_background": "radiobackground_03.png",
19 "presidency_background": "radiobackground_04.png",
20 "scriptures_background": "radiobackground_05.png",
22 "conferences": "conference.png",
23 "magazines": "magazines.png",
25 "mormonmessages": "mormonmessages.png",
27 "scriptures": "scriptures.png",
31 def __init__(self, storePath, cachePath):
32 self._storePath = storePath
33 self._cachePath = cachePath
35 def get_surface_from_store(self, image):
36 path = os.path.join(self._storePath, image)
37 image = cairo.ImageSurface.create_from_png(path)
40 def get_image_from_store(self, image):
41 path = os.path.join(self._storePath, image)
43 image.set_from_file(path)