예제 #1
0
파일: gifimage.py 프로젝트: JDat/rpi_lcars
 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)
예제 #2
0
파일: gifimage.py 프로젝트: Shanker511/ship
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)
예제 #3
0
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)
예제 #4
0
파일: gifimage.py 프로젝트: nezra/Picorder
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
예제 #5
0
파일: gifimage.py 프로젝트: JDat/rpi_lcars
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)
예제 #6
0
 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)
예제 #7
0
파일: gifimage.py 프로젝트: nezra/Picorder
 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)