Beispiel #1
0
 def get_data_blittable(self):
     img_objs = self.get_data_obj_images()
     data = []
     for ind, obj in enumerate(img_objs):
         data.append(
             Blittable(image=obj,
                       x_offset=self.specs.button_x_offset,
                       y_offset=self.specs.button_y_offset +
                       (ind * (obj.get_height() + self.specs.button_gap))))
     return data
Beispiel #2
0
 def get_pointer_blittable(self):
     return Blittable(image=self.get_pointer_image(),
                      x_offset=self.specs.pointer_x_offset -
                      (self.specs.pointer_delta * self.pointer),
                      y_offset=self.specs.pointer_y_offset)
Beispiel #3
0
 def get_blittables(self) -> List:
     blittables = [Blittable(self.specs.bg)]
     blittables.extend(self.get_data_blittable())
     blittables.append(self.get_pointer_blittable())
     return blittables