class ImageBox(Widget):
"""Widget which holds an image."""
- def __init__(self, pos, image, transforms=(EIGHT_BIT,)):
+ def __init__(self, pos, image, eight_bit=True, transforms=()):
super(ImageBox, self).__init__(pos)
self.image = image
+ if eight_bit:
+ transforms = (EIGHT_BIT,) + transforms
self.transforms = transforms
def prepare(self):