I am trying to import pygame but everytime I do, I get an ImportError. Here is
the code I'm trying to run:
import pygame,sys
from pygame.locals import *
pygame.init()
DISPLAYSURF=pygame.display.set_mode((400,300))
pygame.display.set_caption('Hello World!')
while True: #main game loop
for
help me?
Myles Broomes___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
? Thanks in advance,Myles Broomes
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
appreciated. Myles Broomes___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
This question isnt so much related to a specific program, just something im
curious about. What is the best way to email code? I find that when i copy and
paste it into an email, the indentation and spacing gets all messed up.
Myles Broomes
an error code. I coded the last
function in a seperate program without a GUI and it runs fine so I have no clue
what the problem can be. Any help would be much appreciated.
Myles Broomes
___
Tutor maillist - Tutor
Application class doesnt have an attribute
called 'Nothing' but I clearly defined it in the 'createWidgets()' method. Can
anyone explain to me exactly what the problem is. Thanks.
Myles Broomes
___
Tutor maillist
?
Myles Broomes
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
but for whatever reason the variable 'counter' doesnt change when its supposed
to be minused by 1 letter so its always bigger than message if that makes
sense. Any help is much appreciated and thanks in advance.
Myles Broomes
The error message im getting is:
'AttributeError: 'Spikey_ball' object has no attribute 'handle_caught'.
--
Message: 1
Date: Sat, 4 Feb 2012 23:43:32 +
From: myles broomes mylesbroo...@hotmail.co.uk
To: tutor
Im currently using a book called 'Programming in Python for the complete
beginner' and at the end of each chapter, the reader is given challenges to do.
The current chapter im on, one of the challenges is to take the source code for
a 'Pizza Panic' game , and find a way to make the game more
I am trying to code a virtual pet cat program. Heres what I have come up with
so far:
#Pet cat program
#the user chooses a cat of their choice; choosing attributes such as colour,
name etc
#the user then has to look after the cat and keep it alive
#create a class for the cat
class
if there was a way around this.
Thanks in advance,
Myles Broomes
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Im trying to make a program where the user enters 5 words and then the list of
words a is returned in a random order. Heres the code I have come up with so
far:
#random word order program
#the user gives the program a list of words
#the program then returns them in a random order
import random
I requested help for this code earlier and I thought it had been corrected but
apparently, there is still a problem with it...
#random word order program
#the user gives the program a list of words
#the program then returns them in a random order
import random
#explain the purpose of the
I asked for advice yesterday with some pseudocode for a 'guess my number' game
I wrote up, and I was told to have a go at writing up the actual code. I've had
a go but im struggling...
#guess my number games
#the user thinks of a number between 1 and 100,
#the computer then has to try and guess
I am currently learning Python from the 'Python Programming for the Absolute
Beginner' book. At the end of each chapter, you are given challenges and one of
the challenges is to make a 'Guess My Number' game where the player thinks of a
number between 1 and 100 and the computer has to guess the
17 matches
Mail list logo