Este código puede usarse como plantilla general para cualquier programa Pygame.
This code can be used as a base template for a Pygame program.
La primera tarea que un programa Pygame necesita hacer es cargar e inicializar la biblioteca Pygame.
The first code a Pygame program needs to do is load and initialize the Pygame library.
Insertar un programa PyGame en el medio de un programa PyGTK se asemeja a colocar un modelo de barco dentro de una botella.
Putting a PyGame program in the middle of a PyGTK program is a bit like putting a model ship in a bottle.
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.
To begin our first animation, let's start with the base pygame program from Chapter 5 that opens up a blank screen.
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.
Right now, clicking the "close" button of a window while running this Pygame program in IDLE will still cause the program to crash.
Para empezar, necesitamos instalar dos programas, Python y Pygame.
To get started, two programs need to be installed, Python and Pygame.
Todo programa que use Pygame debería empezar con estas líneas
Every program that uses Pygame should start with these lines
Ejemplo Pygame- Crea un instalador para tu programa Python.
Introducción PyGame y PyGTK son dos maneras distintas de crear un programa en Python con una interfaz gráfica.
Introduction PyGame and PyGTK are two different ways to make a Python program with a graphical user interface.
Los programas que hemos visto en clase han hecho uso de funciones que provenían de los módulos math y random, así como de la biblioteca pygame.
In this class programs have already used functions from the math module, the random module, and the pygame library.
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.