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()
def __init__(self, filename, **kwargs): super(ImageEntity, self).__init__(**kwargs) self.texture = Texture(filename)