Re: [Tutor] Help python coding not working

2007-05-07 Thread Gordon
self.guess overwrites itself, that's a live you commented on. And why it doesn't display the game over message is you do the "game over" check before you do the "is this correct?" check, but don't check to see if the game is over before the 2nd check. If that didn't make sense, psudocode: if c

Re: [Tutor] Help python coding not working

2007-05-07 Thread Andreas Kostyrka
Some comments, short (typing on mobiles is no fun): * self.guess gets overridden after the first iteration with an integer. guess what, integer don't have get methods. * I'd suggest to use if/elif/else, not independant ifs. better to read anyway. * consider using a dictionary to parametrize you

[Tutor] Help python coding not working

2007-05-07 Thread super krital
Hi need to get this program running for school so my teacher said to use the forum etc. Its working fine except its not comparing my guess with the result. im only having trouble with the second half or def update_text_count can you please help find a solution so my program works please. i dont

[Tutor] Basic image editing program in python

2007-05-07 Thread Antonio Diaz
Hello!. I have a project in school and I was wondering if its possible to make a python program that uses Imaging library to make a GUI of the same functions that Imaging has. To make the program open the images inside the main program. If its possible to make it in glade.? And if all answer

Re: [Tutor] canvas -> make an object 'seem' to move

2007-05-07 Thread John Fouhy
On 08/05/07, Teresa Stanton <[EMAIL PROTECTED]> wrote: > I seem to be stuck again. I've attached my entire file (and the .gif I'm > using. My son made this .gif, its our lab). The problem is my xp (the > variable I use for my x coordinate) isn't updating after the .gif moves. I > think I should

Re: [Tutor] canvas -> make an object 'seem' to move

2007-05-07 Thread Teresa Stanton
Thank you, that was the correct direction. What I ended up doing is this: def onClickVertical(newY, xp, yp): for i in range(newY): #nextX gives how many steps to the next position yp += .8 #moves to correct position canvasOne.coords(ph, xp, yp) time.slee

Re: [Tutor] can python run under windows 95?

2007-05-07 Thread Dick Moores
At 12:49 PM 5/7/2007, Andreas Kostyrka wrote: I'm almost sure that Python as such runs on Win95. Some modules might not. But I'm also almost sure that the installer is not Win95 compatible. But there's this from < http://www.python.org/download/releases/2.5/>, which seems to imply that if he firs

Re: [Tutor] can python run under windows 95?

2007-05-07 Thread Andreas Kostyrka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm almost sure that Python as such runs on Win95. Some modules might not. But I'm also almost sure that the installer is not Win95 compatible. Andreas Alexander Kapshuk wrote: > Hello Everyone, > > > > Quick question … > > > > I’ve got an o

Re: [Tutor] trying to figure out what this means

2007-05-07 Thread R. Alan Monroe
> when you are doing print these two characters keep showing up in this book > "%s" % > What do they do? "Fill in the blank" Kind of like generic paper forms where they have a blank underline for you to fill in your information. Give it a variable name, and it will fill in the "blank" (the %s)

Re: [Tutor] trying to figure out what this means

2007-05-07 Thread Rikard Bosnjakovic
On 5/7/07, Dave C <[EMAIL PROTECTED]> wrote: > when you are doing print these two characters keep showing up in this book > "%s" % > > What do they do? http://docs.python.org/lib/typesseq-strings.html -- - Rikard - http://bos.hack.org/cv/ ___ Tutor ma

[Tutor] trying to figure out what this means

2007-05-07 Thread Dave C
when you are doing print these two characters keep showing up in this book "%s" % What do they do? here is example of complete command. print "%s" % last_names[-2] Thank you, Dave ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailma