from sys import exit import os from time import sleep from kort import Kort import pygame width, height = 1200 , 700 white = (255, 255, 255) x, y = 50, 50 os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (x,y) pygame.init() running = True screen = pygame.display.set_mode((width, height)) pygame.display.set_caption("CASINO") image = pygame.image.load(r'./card_images/aces.jpg') image_small = pygame.transform.scale(image, (800, 500)) while running: #screen.fill(white) ## start_game = pygame.Rect(466,600,250,50) ## pygame.draw.rect(screen, [255, 0, 0], start_game) screen.blit(image_small, (200, 100)) font = pygame.font.Font(pygame.font.get_default_font(), 100) text = font.render('Start Spill', True, [0,0,0], [255,255,255]) textRect = text.get_rect() textRect.center = (466,600) screen.blit(text, textRect) sleep(2) pygame.display.update() for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() exit()