Example #1
0
    def __init__(self):
        """

        """
        caixa.__init__(self)

        self.imagem = pygame.image.load("Imagens/delay.gif").convert()
        self.imagem_selecao = pygame.image.load("Imagens/Caixa_tempo.gif").convert()
        self.selecao_visivel = True
        self.tempo = 0.0
        self.escreve = "0"
        """
Example #2
0
    def __init__(self):
        """

        """
        caixa.__init__(self)
        self.imagem = pygame.image.load("Imagens/buzzer.gif").convert()
        self.imagem_selecao = pygame.image.load("Imagens/Caixa_buzzer.gif").convert()

        fonte = pygame.font.Font("comic.ttf", config_selecao.data["caixa_buzzer"][self.lingua]["tamanho"])
        texto = fonte.render(config_selecao.data["caixa_buzzer"][self.lingua]["texto"], True, (0, 0, 0))
        self.imagem_selecao.blit(texto, (15, 0))
        self.tempo = 0.0
        self.escreve = "0"
        """
Example #3
0
    def __init__(self):
        """

        """
        caixa.__init__(self)
        self.posicao = (20, int(all_config.data["altura_caixas"]))
        self.imagem = pygame.image.load("Imagens/Inicio.gif").convert()

        fonte = pygame.font.Font("comic.ttf", config_caixa.data['caixa_inicio'][self.lingua]['tamanho'])
        texto = fonte.render(config_caixa.data['caixa_inicio'][self.lingua]['texto'], True, (0, 0, 0))
        pos = eval(config_caixa.data['caixa_inicio'][self.lingua]['pos'])
        self.imagem.blit(texto,pos)
        self.imagem = pygame.transform.rotate(self.imagem,90)
        """
Example #4
0
    def __init__(self):
        caixa.__init__(self)

        self.imagem = pygame.image.load("Imagens/LED.gif").convert()
        self.imagem_selecao = pygame.image.load("Imagens/Caixa_led.gif").convert()
        numero = int(config_selecao.data['caixa_led']['numero'])
        for i in range(numero):
            fonte = pygame.font.Font("comic.ttf", config_selecao.data['caixa_led'][self.lingua][i]['tamanho'])
            texto = fonte.render(config_selecao.data['caixa_led'][self.lingua][i]['texto'], True, (0, 0, 0))
            pos = eval(config_selecao.data['caixa_led'][self.lingua][i]['pos'])
            self.imagem_selecao.blit(texto,pos)

        self.opcoes = [True, False]
        self.leds = [False, False, False]
        """ """
    def __init__(self):
        caixa.__init__(self)
        self.imagem = pygame.image.load("Imagens/temperatura.gif").convert()

        self.imagem_selecao = pygame.image.load("Imagens/caixa_temp.gif").convert()

        numero = int(config_selecao.data['caixa_temperatura']['numero'])
        for i in range(numero):
            fonte = pygame.font.Font("comic.ttf", config_selecao.data['caixa_temperatura'][self.lingua][i]['tamanho'])
            texto = fonte.render(config_selecao.data['caixa_temperatura'][self.lingua][i]['texto'], True, (0, 0, 0))
            pos = eval(config_selecao.data['caixa_temperatura'][self.lingua][i]['pos'])
            self.imagem_selecao.blit(texto,pos)

        self.opcoes = [True, False]

        self.tempo = 0.0
        self.escreve = "0"
        """ """