error in coding in pygame.
Posted
by mekasperasky
on Stack Overflow
See other posts from Stack Overflow
or by mekasperasky
Published on 2010-04-15T19:56:56Z
Indexed on
2010/04/15
20:13 UTC
Read the original article
Hit count: 242
pygame
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?
© Stack Overflow or respective owner