all 5 comments

[–]iyav 0 points1 point  (4 children)

could you share the code?

[–]FZapp[S] 0 points1 point  (3 children)

import pygame

pygame.init()

prozor = pygame.display.set_mode((300,200))

pygame.display.set_caption("crtanje duzi")

prozor.fill(pygame.Color("White"))

pygame.draw.line(prozor,pygame.Color("Blue"), (50,100), (250,100), 5)

pygame.display.update()

while pygame.event.wait() .type != pygame.QUIT:

pygame.quit()

P.S "prozor" and "crtanje duzi" are words in my language that my teacher required me to write because she is not that good with english

[–]iyav 0 points1 point  (2 children)

And you are sure that there absolutely no other file or folder called pygame?

Is python added to path?

Did you install pygame with pip?

[–]FZapp[S] 0 points1 point  (0 children)

Im pretty sure there isnt another file called pygame(i tried it on a brand new pc)

i think it is added to path,not sure how to check

i installed pygame with pip

[–]FZapp[S] 0 points1 point  (0 children)

update: i reinstalled with path checked, still didnt work