Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pygame2pys60
- # pygame: import pygame from pygame.locals import *
- import e32, graphics from appuifw import *
- # pygame: sound = pygame.mixer.Sound(fullname) sound.play()
- import audio sound = audio.Sound.open(fullname) sound.play()
- # pygame: window = pygame.display.set_mode((2, 60))
- app.screen = 'large' # or 'normal', 'full'
- # pygame: screen = pygame.display.get_surface()
- app.body = canvas = Canvas(None, key.handle_event) # you need to create key (a Keyboard instance) before this
- # pygame: image = pygame.image.load(file_name)
- image = graphics.Image.open(file_name)
- # pygame: screen.blit(image, (0,0)); pygame.display.flip()
- canvas.blit(image, target=(0,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement