So.THIS:
import pygame
import time
import random
import sys
itworks = True
pygame.init()
screen = pygame.display.set_mode((600, 600))
bootpng = pygame.image.load('bootimage.png')
bootpng = pygame.transform.scale(bootpng, (600, 600))
backgroundmenu = pygame.image.load('Menu_background.png')
backgroundmenu = pygame.transform.scale(backgroundmenu, ((600, 600))
button = pygame.image.load('technical_information_button')
button = pygame.transform.scale(infobut, ((130, 80))
screen.blit(bootpng, (0, 0))
time.sleep(3)
while itworks == True:
screen.blit(backgroundmenu, (0, 0))
screen.blit(tekbutton, (470, 520))
for event in pygame.event.get():
if ecent.type == pygame.QUIT:
itworks = False
# if event.type == pygame.MOUSEBUTTONDOWN:
# Set the x, y postions of the mouse click
#x, y = event.pos
#if ball.get_rect().collidepoint(x, y):
pygame.display.flip()
pygame.quit()
is my code. Buuut.. for SOME reason python says "Invalid Syntax" at variable button, line 15*. I really don't know what to do about it, I tried a lot of things, so I hope I can get help from here :D