SHARE
TWEET

Kobo 1st gen test

KevinShort Dec 14th, 2012 190 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top