[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] image window disappears



hope this helps

On 6/12/15, Ian Mallett <ian@xxxxxxxxxxxxxx> wrote:
> This is the message I sent at 16:56 today (5 minutes after the OP); eaten
> silently by the mailerâ
> â
>  (see thread [Mailing List Discard Tweak]). I would appreciate the list's
> confirmation of this email as a test.
>
> ---
>
> On Fri, Jun 12, 2015 at 4:51 PM, tom arnall <kloro2006@xxxxxxxxx> wrote:
>
>> 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!')
>>
> None of these are blocking calls, so if there is the entire script, Python
> should exit, taking PyGame (and the window) with it.
>
> So, to clarify, are you omitting a main loop in your sample?
>
> Ian
>


-- 
Faced with the possibility of its extinction, every species finds
within itself powers unimaginable in the days of its complacency.