示例#1
0
    def __init__(self):
        try:
            # iniciamos la pantalla.
            os.putenv('SDL_VIDEODRIVER', 'fbcon')
            os.putenv('SDL_FBDEV'      , '/dev/fb1')
            os.putenv('SDL_MOUSEDRV' , 'TSLIB')
            os.putenv('SDL_MOUSEDEV'   , '/dev/input/touchscreen')
            pygame.init()
            self.screen = pygame.display.set_mode((0,0), pygame.FULLSCREEN)
            pygame.display.set_caption("utemper")
            pygame.mouse.set_visible(False)
            
            # info
            gv.screen_widht  = pygame.display.Info().current_w
            gv.screen_height  = pygame.display.Info().current_h

            self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
            self.cUtemperSceen0 = utemper_screen_0.cScreen_0(self.screen)
            self.cUtemperSceen1 = utemper_screen_1.cScreen_1(self.screen)
            self.cUtemperSceen2 = utemper_screen_2.cScreen_2(self.screen)
            self.cUtemperSceen4 = utemper_screen_4.cScreen_4(self.screen)
            self.cUtemperSceen5 = utemper_screen_5.cScreen_5(self.screen)
            self.cScreenBlack = utemper_screen_Black.cScreenBlack()
            
            self.pantalla=1

            log(1,"iniciar la pantalla  OK")
        except:
            log(4,"Imposible iniciar la pantalla KOO")
            self.pantalla=0
        self.refrescar_screen()                
    def __init__(self):
        try:
            # iniciamos la pantalla.
            os.putenv("SDL_VIDEODRIVER", "fbcon")
            os.putenv("SDL_FBDEV", "/dev/fb1")
            os.putenv("SDL_MOUSEDRV", "TSLIB")
            os.putenv("SDL_MOUSEDEV", "/dev/input/touchscreen")
            pygame.init()
            # screen = pygame.display.set_mode((gv.screen_widht, gv.screen_widht))
            self.screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
            pygame.display.set_caption("utemper")
            pygame.mouse.set_visible(False)

            # info
            gv.screen_widht = pygame.display.Info().current_w
            gv.screen_height = pygame.display.Info().current_h

            self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
            self.cUtemperSceen0 = utemper_screen_0.cScreen_0(self.screen)
            self.cUtemperSceen1 = utemper_screen_1.cScreen_1(self.screen)
            self.cUtemperSceen2 = utemper_screen_2.cScreen_2(self.screen)
            self.cUtemperSceen4 = utemper_screen_4.cScreen_4(self.screen)
            self.cUtemperSceen5 = utemper_screen_5.cScreen_5(self.screen)
            self.cScreenBlack = utemper_screen_Black.cScreenBlack()

            self.pantalla = 1

            log(1, "iniciar la pantalla  OK")
        except:
            log(4, "Imposible iniciar la pantalla KOO")
            self.pantalla = 0
        self.refrescar_screen()
 def __init__(self, screen):
     self.screen = screen
     try:
         self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
         self.pantalla = 1
     except:
         log(4, "Imposible iniciar la pantalla 4 ")
         self.pantalla = 0
 def __init__(self, screen):
     self.screen = screen
     try:
         self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
         self.letra= pygame.font.Font("font/stag-sans-light-webfont.ttf", 20)
         self.pantalla=1
     except:
         log(4,"Imposible iniciar la pantalla 5 ")
         self.pantalla=0
示例#5
0
 def __init__(self, screen):
     self.screen = screen
     try:
         self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
         self.letra= pygame.font.Font("font/stag-sans-light-webfont.ttf", 20)
         self.pantalla=1
     except:
         log(4,"Imposible iniciar la pantalla 5 ")
         self.pantalla=0
 def __init__(self, screen):
     self.screen = screen
     try:
         self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
         self.Letra_temp2 = pygame.font.Font("font/Interstate-Black.ttf", 40)
         self.pantalla=1
     except:
         log(4,"Imposible iniciar la pantalla 1 ")
         self.pantalla=0
示例#7
0
 def __init__(self, screen):
     self.screen = screen
     try:
         self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
         self.Letra_temp2 = pygame.font.Font("font/Interstate-Black.ttf",
                                             40)
         self.pantalla = 1
     except:
         log(4, "Imposible iniciar la pantalla 1 ")
         self.pantalla = 0
    def __init__(self, screen):
        self.screen = screen
        try:
            # inicializamos las letras.
            self.Letra_top = pygame.font.Font("font/stag-sans-light-webfont.ttf", 20)
            self.Letra_temp1 = pygame.font.Font("font/Interstate-Black.ttf", 50)
            self.Letra_temp2 = pygame.font.Font("font/Interstate-Black.ttf", 40)

            self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
            self.pantalla=1
        except:
            log(4,"Imposible iniciar la pantalla 0 ")
            self.pantalla=0
示例#9
0
    def __init__(self, screen):
        self.screen = screen
        try:
            # inicializamos las letras.
            self.Letra_top = pygame.font.Font(
                "font/stag-sans-light-webfont.ttf", 20)
            self.Letra_temp1 = pygame.font.Font("font/Interstate-Black.ttf",
                                                50)
            self.Letra_temp2 = pygame.font.Font("font/Interstate-Black.ttf",
                                                40)

            self.cUtemperSceenImagen = utemper_screen_image.cScreenImeges()
            self.pantalla = 1
        except:
            log(4, "Imposible iniciar la pantalla 0 ")
            self.pantalla = 0