0

During execution, a screen of the correct resolution loads, but the image (which is 1200x800) is not showing up on the screen, instead, a black screen

import pygame

class Application:
    def __init__(self):
        pygame.init()
        self.Running = True
        self.Display = pygame.display.set_mode((1200,800))
        self.WindowTitle = pygame.display.set_caption("test")
        self.Surface = pygame.Surface((1200, 800))
        self.Background = None

    def Splashscreen(self):
        Splashscreen = pygame.image.load("./Assets/Backgrounds/001.png").convert()
        self.Background = self.Surface.blit(Splashscreen, (0,0))

if __name__ == "__main__" :
    MainApplication = Application()
    MainApplication.Splashscreen()

Why is this and how can I fix it?

nx_prv
  • 117
  • 7

0 Answers0