Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello, world")
- import pygame
- from subprocess import call
- pygame.font.init()
- font = pygame.font.Font(None, 30)
- image = pygame.Surface((600, 800))
- image.fill((255, 255, 255))
- text = font.render("Hello", True, (0, 0, 0), (255, 255, 255))
- image.blit(text, (20, 20))
- pygame.image.save(image, "/tmp/image.jpg")
- call(["/bin/show_pic", "/tmp/image.jpg"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement