old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  import sys
  import time
  
  import pygame
  
  pygame.init()
  
  pygame.mouse.set_visible(False)
  
  PATH = sys.path[1] + '/src'
  
  file = __file__
  
  print('file: {}'.format(file))
  
  print(PATH)
  
  FOLDER_PATH = '/FOLDER_1/'
  
  IMAGE_PATH = PATH + FOLDER_PATH + 'jenkins.png'
  
  print(IMAGE_PATH)
  
  image = pygame.image.load(IMAGE_PATH)
  
  font = pygame.font.SysFont('arial', 18)
  
  DISPLAY_WIDTH = 256
  DISPLAY_HEIGHT = 256
  
  BLACK = (10, 10, 10)
  DARK_GRAY = (43, 43, 43)
  WHITE = (255, 255, 255)
  
  RED = (231, 76, 60)
  GREEN = (39, 174, 96)
  BLUE = (52, 152, 219)
  
  YELLOW = (241, 196, 15)
  ORANGE = (238, 153, 18)
  
  TFT = pygame.display.set_mode((DISPLAY_WIDTH, DISPLAY_HEIGHT))
  
  background = pygame.draw.rect(TFT, GREEN, (0, 0, 256, 256))
  
  
  def draw_to_tft():
      TFT.blit(image, (0, 0))
      TFT.blit(font.render('jenkins', True, WHITE), (195, 235))
  
      pygame.display.update()
  
      time.sleep(1)
  
  
  def quit_all():
  
      pygame.quit()
      quit()
  
  
  def loop():
  
      running = True
  
      while running:
  
          draw_to_tft()
  
          for event in pygame.event.get():
  
              if event.type == pygame.QUIT:
  
                  running = False
  
                  quit_all()
  
              elif event.type == pygame.KEYDOWN:
  
                  if event.key == pygame.K_ESCAPE:
  
                      running = False
  
                      quit_all()
  
                  elif event.key == pygame.K_SPACE:
  
                      print('SPACE')
  
      quit_all()
  
  if __name__ == '__main__':
  
      try:
  
          loop()
  
      except KeyboardInterrupt:
  
          quit_all()
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  import sys
  import time
  
  import pygame
  
  pygame.init()
  
  pygame.mouse.set_visible(False)
  
  PATH = sys.path[1] + '/src'
  
  file = __file__
  
  print('file: {}'.format(file))
  
  print(PATH)
  
  FOLDER_PATH = '/FOLDER_1/'
  
  IMAGE_PATH = PATH + FOLDER_PATH + 'jenkins.png'
  
  print(IMAGE_PATH)
  
  DISPLAY_WIDTH = 266
  DISPLAY_HEIGHT = 266
  
  BLACK = (10, 10, 10)
  DARK_GRAY = (43, 43, 43)
  WHITE = (255, 255, 255)
  
  RED = (231, 76, 60)
  GREEN = (39, 174, 96)
  BLUE = (52, 152, 219)
  
  YELLOW = (241, 196, 15)
  ORANGE = (238, 153, 18)
  
  TFT = pygame.display.set_mode((DISPLAY_WIDTH, DISPLAY_HEIGHT))
  
  image = pygame.image.load(IMAGE_PATH)
  font = pygame.font.SysFont('arial', 18)
  
  background = pygame.draw.rect(TFT, GREEN, (0, 0, 266, 266))
  
  
  def draw_to_tft():
      TFT.blit(image, (5, 5))
      TFT.blit(font.render('jenkins', True, WHITE), (200, 240))
  
      pygame.display.update()
  
      time.sleep(1)
  
  
  def quit_all():
  
      pygame.quit()
      quit()
  
  
  def loop():
  
      running = True
  
      while running:
  
          draw_to_tft()
  
          for event in pygame.event.get():
  
              if event.type == pygame.QUIT:
  
                  running = False
  
                  quit_all()
  
              elif event.type == pygame.KEYDOWN:
  
                  if event.key == pygame.K_ESCAPE:
  
                      running = False
  
                      quit_all()
  
                  elif event.key == pygame.K_SPACE:
  
                      print('SPACE')
  
      quit_all()
  
  if __name__ == '__main__':
  
      try:
  
          loop()
  
      except KeyboardInterrupt:
  
          quit_all()
  
subject: test commit