def __init__(self, imagefilename, pos, duration=-1, stretch=None): self.image = GIFImage(imagefilename, duration) self.pos = pos # fixme! Stretch not working if stretch: size = config.RESOLUTION else: size = (self.image.get_rect().width, self.image.get_rect().height) print(size) LcarsWidget.__init__(self, None, pos, size)
class LcarsGifImage(LcarsWidget): def __init__(self, imagefilename, pos, duration=-1): self.image = GIFImage(imagefilename, duration) self.pos = pos size = (self.image.get_rect().width, self.image.get_rect().height) LcarsWidget.__init__(self, None, pos, size) def update(self, screen): if self.visible: self.image.render(screen, self.rect)
class LcarsGifImage(LcarsWidget): def __init__(self, imagefilename, pos, duration=-1): self.image = GIFImage(imagefilename, duration) self.pos = pos self.colour = (0, 0, 0) size = (self.image.get_rect().width, self.image.get_rect().height) LcarsWidget.__init__(self, None, pos, size) def update(self, screen): if self.visible: self.image.render(screen, self.rect) def changeColour(self, newColour, changeState=False): pass
class LcarsGifImage(LcarsWidget): def __init__(self, imagefilename, pos, duration=-1, stretch=None): self.image = GIFImage(imagefilename, duration) self.pos = pos # fixme! Stretch not working if stretch: size = config.RESOLUTION else: size = (self.image.get_rect().width, self.image.get_rect().height) print(size) LcarsWidget.__init__(self, None, pos, size) def update(self, screen): if self.visible: self.image.render(screen, self.rect)
def __init__(self, imagefilename, pos, duration=-1): self.image = GIFImage(imagefilename, duration) self.pos = pos size = (self.image.get_rect().width, self.image.get_rect().height) LcarsWidget.__init__(self, None, pos, size)
def __init__(self, imagefilename, pos, duration=-1): self.image = GIFImage(imagefilename, duration) self.pos = pos self.colour = (0, 0, 0) size = (self.image.get_rect().width, self.image.get_rect().height) LcarsWidget.__init__(self, None, pos, size)