[Tutor] Why Won't My Pizza Fall?

2008-01-12 Thread earlylight publishing
Hey There Everyone, I'm following an example in a book and I can't find the error that's preventing this program from running. It's just an example of how to get a sprite moving. The images are all in the right folder. I can run the program and get a stationary sprite to appear. The tr

Re: [Tutor] Bound To Be A Typo Thank You

2007-12-17 Thread earlylight publishing
two, and therefore you are not really defining __init__ but instead are relying upon the inherited one from object (which takes no parameters). With regard, Michael On Monday December 17, 2007, earlylight publishing wrote: > Okay I copied this code directly from a book (author Michael Dawson)

[Tutor] Bound To Be A Typo

2007-12-17 Thread earlylight publishing
Okay I copied this code directly from a book (author Michael Dawson) and it's not working. I'm sure I've missed something obvious like the spacing or something but I've been staring at it for 10 minutes and I can't see it. I'll put the code and error message below. Can someone else spot the p

[Tutor] Python Versions

2007-12-15 Thread earlylight publishing
No prob about the gender confusion. :-) I'd be willing to bet most folks around here are male so it's not unreasonable to assume. I wasn't offended, just thought I'd share in the interest of accuracy. Thanks for the kind appology anyway. Hope I haven't set off a firestorm! Message: 1

Re: [Tutor] upper and lower case input for file name

2007-12-15 Thread earlylight publishing
I don't know if this'll help or not but I just learned about this: file = raw_input(info).lower The .lower is supposed to convert any input to lower case. -- Message: 4 Date: Fri, 14 Dec 2007 11:14:13 -0500 From: "Bryan Fodness" <[EMAIL PROTECTED]> S

Re: [Tutor] Python Versions

2007-12-12 Thread earlylight publishing
her difficulties understanding the concepts in the book. I just thought I'd share what worked for me. :-) The OP has not specified what his problems specifically are, but "earlylight publishing" described his problem before, and he was not understanding why the >>&g

Re: [Tutor] Python Versions

2007-12-12 Thread earlylight publishing
them in the shell. Do people really write whole applications just using the shell? "earlylight publishing" <[EMAIL PROTECTED]> wrote >I have the latest python version too when I first started "A Byte of >Python" > my code wouldn't work either.

Re: [Tutor] Python Versions

2007-12-12 Thread earlylight publishing
I have the latest python version too when I first started "A Byte of Python" my code wouldn't work either. My problem was that I was programming in the shell (the screen with the three '>>>' on it). I found when I wrote the examples in a new window (cntrl+N) they all worked as advertized. He

Re: [Tutor] How is "tuple" pronounced?

2007-12-11 Thread earlylight publishing
So it looks like most folks here and on the web are saying too-ple (rhymes with scruple or pupil... sorta). That's the one I'll go with... now that I can say it it's time to get back to learning how to use em! Please visit our website www.earlylightpublishing.com -

[Tutor] How is "tuple" pronounced?

2007-12-10 Thread earlylight publishing
Is it tuh-ple (rhymes with supple) or is it two-ple (rhymes with nothing that I can think of)? Please visit our website www.earlylightpublishing.com - Never miss a thing. Make Yahoo your homepage.___ Tutor

[Tutor] Timed While Loops Thank You

2007-12-08 Thread earlylight publishing
Thank you all so much for your patience and help! I haven't had a chance to try any of the code yet (gotta go be a mommy first) :^) I look forward to sitting down and playing around with it this evening though! I also finally found a book that seems to fit my learning style well. Hopefully

[Tutor] Still Can't Find Timed While Loops

2007-12-06 Thread earlylight publishing
Hello all, I now have my bit of code in while loop form and it works! It's great but not exactly what I wanted to do. I've been googling my heart out and I find lots of info on while loops and lots of info on timers that will execute an action AFTER a given interval but nothing on a time

[Tutor] While Loops and Modules

2007-12-05 Thread earlylight publishing
Hello again to all the wonderfully helpful folks on this list. Today I did my Google homework and I found this neat bit of code for a countdown timer. import time import threading class Timer(threading.Thread): def __init__(self, seconds): self.runTime = seconds threadin

[Tutor] Thanks (was Random Number Generator)

2007-12-04 Thread earlylight publishing
Thank you everyone for your help! I have no idea why it never occured to me to Google it. Thanks for the code. Now let's see if I can get this sucker to work! - Looking for last minute shopping deals? Find them fast with Yahoo! Search.

[Tutor] Random Number Generator

2007-12-04 Thread earlylight publishing
Hello All, I'm a bare beginner to python (or indeed) any programming. I'm helping myself become more proficient by making a text adventure game. The problem is I need a function (or module) that will generate a random number within a range, say 1-20 for example. The ability to program t