[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] image window disappears
- To: pygame-users <pygame-users@xxxxxxxx>
- Subject: [pygame] image window disappears
- From: tom arnall <kloro2006@xxxxxxxxx>
- Date: Fri, 12 Jun 2015 16:51:57 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 12 Jun 2015 19:52:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7lCBG/o8QZJs4PyyZSaAu85FdbfvplPvIHi9RdsQO7U=; b=DkOEiKlGaild/iv1E74oT6DQI9Uu2H/aPxDEbOgkwfOIwPP39ENrH6e1q1YRbtAIp+ xSENME/ZGrx2hJ5GGYkUQ/RwhvC3jcbcXgoq3WJeYyax0GUDgdxFxlRgNfbizW2ajJAG SMsPM2GWwY29iLzyY7Ee7TJy5rFX6jVVzB1H+2p4n46cW58okm/7sYRYAP5Sh6YelPhY GaOnS5unnT793O2kK9qn3nvnRzarzoL4EElKEicxtM06/qJ3X/UImSreGIjQH1NT8jzD A3FFssOYHMCmBLBECZciIpwz310WblN0FzDn11uL8wl1aXJUqwUQPM+XpqQI5M7TMFCq 3n0g==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Greetings,
The following creates a window on my screen, which disappears after
about 1 second:
import pygame, sys
from pygame.locals import *
# set up pygame
pygame.init()
# set up the window
windowSurface = pygame.display.set_mode((500, 400), 0, 32)
pygame.display.set_caption('Hello world!')
I've tried it with two setups with the same result: python2.7 and python3.4.
Before I put 3.4 on my system, it ran on python2.7 with what I expect
is the correct behavior, i.e., the image persisted until I killed
python. After installing 3.4 and pygame for 3.4, the current problem
emerged.
My OS is Debian Wheezy.
Thanks in advance for any help you can give me,
Tom Arnall
--
Faced with the possibility of its extinction, every species finds
within itself powers unimaginable in the days of its complacency.