This code can be used as a base template for a Pygame program.
Este código puede usarse como plantilla general para cualquier programa Pygame.
The first code a Pygame program needs to do is load and initialize the Pygame library.
La primera tarea que un programa Pygame necesita hacer es cargar e inicializar la biblioteca Pygame.
Putting a PyGame program in the middle of a PyGTK program is a bit like putting a model ship in a bottle.
Insertar un programa PyGame en el medio de un programa PyGTK se asemeja a colocar un modelo de barco dentro de una botella.
To begin our first animation, let's start with the base pygame program from Chapter 5 that opens up a blank screen.
Para comenzar con nuestra primera animación, tomaremos la plantilla básica de programa Pygame del Capítulo 5, la cual abre una ventana en blanco.
Right now, clicking the "close" button of a window while running this Pygame program in IDLE will still cause the program to crash.
En estos momentos, si pinchamos el botón de "cierre" de la ventana, mientras ejecutamos nuestro programa Pygame dentro del IDLE, conseguiremos que se bloquee.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.