Código Python:
ESO ES LO QUE LLEVO APENAS ESTOY COMENZANDO .Ver original
# ! /usr/bin/env python # -*- coding: utf-8 -*- # Modulos import pygame from pygame. locals import* import sys # Constantes SCREEN_WIDTH = 840 SCREEN_HEIGHT = 680 # Clases #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # Funciones #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- def main(): pygame.init() screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption("APREDIENDO C++") fondotesis = pygame.image.load("fondotesis.jepg").convert() imagentesis22 = pygame.image.load("imagentesis22.png").convert_alpha() screen.blit(fondotesis, (0, 0)) screen.blit(imagentesis22, (550, 200)) pygame.display.flid() while True: for eventos in pygame.event.get(): if eventos. type ==pygame.QUIT: sys.exit(0) if __name__== "__main__": main()
EL ERRO QUE ME MUESTRA ES
Traceback (most recent call last):
File "C:\Documents and Settings\Administrador\Mis documentos\PYTHON TESIS\tesis.py", line 48, in <module>
main()
File "C:\Documents and Settings\Administrador\Mis documentos\PYTHON TESIS\tesis.py", line 33, in main
fondotesis = pygame.image.load("fondotesis.jepg").convert()
error: Couldn't open fondotesis.jepg
SI ALGUIEN PUEDE AYUDARME