Please Help!! Pygame not responding...

Issue #97 resolved
Zbaker1398 created an issue

ok, so i got pygame installed with macports but now it seems like there is yet another problem. When I try to run a simple program like this:

or any other, ive tried a few and i save and run the pygame icon bounces once and then stops and no window or anything shows up. I then click on it and it says application not responding...ANy help would be greatly appreciated. Thank you,

Zack P.S it does work in terminal....but not with IDLE {{{ #! /usr/bin/env python

import pygame w=640 h=480 screen = pygame.display.set_mode((w, h)) pygame.draw.line(screen, (255, 0, 0), (0, 0), (w, h)) pygame.display.flip() }}}

Comments (5)

  1. René Dudfield

    Hi,

    you need an event loop, because otherwise the window doesn't know how to respond to things (is not responding).

    Take a look at the examples to see how events work.

    cheers,

  2. Log in to comment