tags:

views:

34

answers:

1
import pygame
from pygame.locals import *
screen=pygame.display.set_mode()
nin=pygame.image.load('/home/satyajit/Desktop/nincompoop0001.bmp')
screen.blit(nin,(50,100))

according to the code i should get a screen with an image of nin on it . But I only get a black screen which doesnt go even though i press the exit button on it. how to get the image on the screen?

A: 

You have to call pygame.display.flip() whenever you want the screen to be updated.

isbadawi