Advertisement
KevinShort

Kobo 1st gen test

Dec 14th, 2012
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. print("Hello, world")
  2. import pygame
  3. from subprocess import call
  4. pygame.font.init()
  5. font = pygame.font.Font(None, 30)
  6. image = pygame.Surface((600, 800))
  7. image.fill((255, 255, 255))
  8.  
  9. text = font.render("Hello", True, (0, 0, 0), (255, 255, 255))
  10. image.blit(text, (20, 20))
  11.  
  12. pygame.image.save(image, "/tmp/image.jpg")
  13. call(["/bin/show_pic", "/tmp/image.jpg"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement