[Tutor] Moveable and Animated Sprites

2011-08-14 Thread Jordan
Is there a more Pythonic way to create the class "MoveableAnimatedSheetSprite" I am using multiple inheritance but I see that I am really loading the image twice when I call __init__ for "AnimatedSheetSprite" and "MoveableSprite". Should I just make a moveable class and have moveable items inherit

Re: [Tutor] python

2011-08-14 Thread Jack Trades
On Sun, Aug 14, 2011 at 8:04 AM, je.rees e-mail wrote: > I have made a small program but I would like to know how to write or. There > is multiple choice answer. > Good=raw_input("Good to hear") > ok=raw_input("Good good") > Bad=raw_input("Oh dear") > I would only like the person using the progra

Re: [Tutor] python

2011-08-14 Thread brandon w
On 08/14/2011 09:04 AM, je.rees e-mail wrote: I have made a small program but I would like to know how to write or. There is multiple choice answer. Good=raw_input("Good to hear") ok=raw_input("Good good") Bad=raw_input("Oh dear") I would only like the person using the program to be able to pick

Re: [Tutor] (no subject)

2011-08-14 Thread Steven D'Aprano
je.rees e-mail wrote: I would like this script to only have a choice of one these. I'm not sure how to do it. My example would be when someone types Good next to print how I want it to reply Thats nice. Anyone know how and if I am making more mistakes point them out please. Consider this examp

[Tutor] (no subject)

2011-08-14 Thread je.rees e-mail
I would like this script to only have a choice of one these. I'm not sure how to do it. My example would be when someone types Good next to print how I want it to reply Thats nice. Anyone know how and if I am making more mistakes point them out please. How=("How are you today: ") print How Good=(

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Alan Gauld
On 14/08/11 14:07, Wayne Werner wrote: Of course I personally I usually do import Tkinter as tk Which means I only have to type 3 extra characters, but it removes any ambiguity - tk.Something had to come from Tkinter Thats exactly what I tend to do nowadays. I used to use the import * method

[Tutor] python

2011-08-14 Thread je.rees e-mail
I have made a small program but I would like to know how to write or. There is multiple choice answer. Good=raw_input("Good to hear") ok=raw_input("Good good") Bad=raw_input("Oh dear") I would only like the person using the program to be able to pick one. Thanks ___

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Wayne Werner
On Aug 14, 2011 2:12 AM, "Robert Sjoblom" wrote: > > However, given that Tkinter is such a huge package to begin with, I'd > say that you should continue to use from Tkinter import *, but be > aware of what you're doing when you type that, and that there is a > certain risk of conflicts. Also, mo

Re: [Tutor] Tkinter: no module named messagebox (brandon w)

2011-08-14 Thread Robert Sjoblom
> I have tried to follow the tutorial I found here: > > Python 2.7 Tutorial > http://www.youtube.com/watch?v=uh6AdDX7K7U > > This is what I have done so far: > > #!/usr/bin/python > > from Tkinter import * > import Tkinter.MessageBox I figured I might as well, given how I recently had to learn abo