[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pygame graphics window Freezes
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Pygame graphics window Freezes
- From: ryan luna <ryan_gm@xxxxxxxxxxxxx>
- Date: Sat, 20 May 2006 13:34:00 -0700 (PDT)
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 20 May 2006 16:34:04 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LW5WA9+bh1axpWKzFjO3w1de2y7LrM4KM33Ea800t09bHSt//4Wx+tUuo5loTp7IM/oIEa4AzvCUY6515zQWYxbKd0pQNzAc9Unadodv3ocs7NhfsdMIRfKFM13Er+IYDyGiXJ+0p/AgSEKKoQrLSAnU4sJhMuJqS566hRW8h+c= ;
- In-reply-to: <446F74CA.8010109@comcast.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
well try, thanks
Kamilche <klachemin@xxxxxxxxxxx> wrote: ryan luna wrote:
> hey, im trying to follow the Tut on the pygame site, but whenever i open a new window like
>
> window = pygame.display.set_mode((468, 60))
>
> the window opens but it crashes, im running for the IDE like
> it says to, but i don't know whats going wrong -_-.
>
> btw, i do import pygame and all that stuff.
>
>
>
I'm on Windows, and in general, I can't run Pygame from the shell like
you mention.
Put your test code in a file, and execute the file instead.
Put a 'pygame.event.pump()' just before processing the events.
Issue a 'pygame.quit()' at the end of the code, whether the tutorial
says to or not.
If you do all that, you can run it from IDLE easily
enough!
--Kamilche