[Tutor] Importing Pygame

2014-01-28 Thread myles broomes
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

[Tutor] Reading from a seperate file

2012-10-25 Thread myles broomes
help me? Myles Broomes___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Tkinter GUI

2012-09-11 Thread myles broomes
? Thanks in advance,Myles Broomes ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] While loops

2012-07-07 Thread myles broomes
appreciated. Myles Broomes___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Emailing code

2012-04-06 Thread myles broomes
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

[Tutor] Tkinter GUI crashing problem

2012-04-06 Thread 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

[Tutor] Simple GUI

2012-03-04 Thread myles broomes
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

[Tutor] Dictionaries

2012-02-10 Thread myles broomes
? Myles Broomes ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Backwards message program

2012-02-06 Thread myles broomes
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

Re: [Tutor] Tutor Digest, Vol 96, Issue 12

2012-02-05 Thread 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

[Tutor] Pizza panic game

2012-02-04 Thread myles broomes
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

[Tutor] Virtual pet cat program

2012-01-17 Thread myles broomes
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

[Tutor] Television simulation

2011-12-23 Thread myles broomes
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

[Tutor] Random order program

2011-11-27 Thread myles broomes
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

[Tutor] Random order program

2011-11-27 Thread myles broomes
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

[Tutor] Guess my number game

2011-11-20 Thread myles broomes
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

[Tutor] Guess my number game

2011-11-19 Thread myles broomes
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