7 class ImageStore(object):
15 "generic_background": "radiobackground_01.png",
16 "night_temple_background": "radiobackground_02.png",
17 "day_temple_background": "radiobackground_03.png",
18 "presidency_background": "radiobackground_04.png",
19 "scriptures_background": "radiobackground_05.png",
20 "conference": "conference.png",
21 "magazines": "magazines.png",
23 "mormonmessages": "mormonmessages.png",
25 "scriptures": "scriptures.png",
29 def __init__(self, storePath, cachePath):
30 self._storePath = storePath
31 self._cachePath = cachePath
33 def get_surface_from_store(self, image):
34 path = os.path.join(self._storePath, image)
35 image = cairo.ImageSurface.create_from_png(path)
38 def get_image_from_store(self, image):
39 path = os.path.join(self._storePath, image)
41 image.set_from_file(path)