Python video system not intilated
<p>Here it is, I dont know what is wrong, I looked at other answers but I still dont know what is wrong?</p>

<pre><code>import pygame

pygame.init()

gameWindow = pygame.display.set_mode((1000,600));
pygame.display.set_caption("Practice")
#game starts
gameActive = True
while gameActive:
    for event in pygame.event.get():
        #print event
        if event.type == pygame.QUIT:
            gameActive = False

    pygame.quit()
quit()
</code></pre>

<p>You have <code>pygame.quit()</code> in your main loop, so after one iteration through the loop you are calling <code>pygame.quit()</code>, which causes pygame to no longer be initialized which creates the error of not having a display surface. </p>

<p>Moving <code>pygame.quit()</code> out of the main while loop fixes the issue.</p>

python pygame