Exemplo n.º 1
0
class ImageEntity(BaseUIEntity):
    def __init__(self, filename, **kwargs):
        super(ImageEntity, self).__init__(**kwargs)
        self.texture = Texture(filename)

    def get_surface(self):
        return self.texture.get()
Exemplo n.º 2
0
 def __init__(self, filename, **kwargs):
     super(ImageEntity, self).__init__(**kwargs)
     self.texture = Texture(filename)