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:

Re: [Tutor] Pizza panic game

2012-02-05 Thread Dave Angel
(You forgot to do a Reply-all, and thus your message(s) came only to me. I'm forwarding it, but with my response as well) On 02/05/2012 05:35 AM, myles broomes wrote: I apologise, this is what the code actually looks like: Spikey ball class: class Spikey_ball(games.Sprite): A

[Tutor] Cmd Advice

2012-02-05 Thread Dave Hanson
Hi Everyone, I wonder if anyone here can help me? I have Googled the pants off this one and have found useful resources, I also asked in the #python IRC channel (no one seemed to know in there) but can't seem to crack it: I want to create a 'task list' type of program with no GUI - I found this:

[Tutor] ploting of a square well

2012-02-05 Thread Debashish Saha
from pylab import * x=linspace(1,1000,1) a,b = 10,20 def v(x): i=5;v0=2 for n in range(1,1+i): if x(n-1)*(a+b) and xa+(n-1)*(a+b): return 0 elif xa+(n-1)*(a+b) and x(n)*(a+b) : return v0 #v=vectorize(v) plot(x,v) show() Error: x and y must have

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

2012-02-05 Thread Alan Gauld
On 05/02/12 11:56, myles broomes wrote: The error message im getting is: 'AttributeError: 'Spikey_ball' object has no attribute 'handle_caught'. Are you sure that's the entire error message? It looks like its only the last line. Usually there is a lot more information than that. How are you

Re: [Tutor] Cmd Advice

2012-02-05 Thread Alan Gauld
On 05/02/12 13:26, Dave Hanson wrote: So far so good. I then realised that at work (XP) I have restricted access to a command line and so wouldn't be able to use it, restricted in the sense of I simply am not permitted to access it! Are you prevented from using it or is it just a company

Re: [Tutor] ploting of a square well

2012-02-05 Thread Alan Gauld
On 05/02/12 13:38, Debashish Saha wrote: Error: x and y must have same first dimension Please send the complete error message not just the last line or a summary. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___

Re: [Tutor] Cmd Advice

2012-02-05 Thread Dave Hanson
Thanks Alan. I have ran python programs before at work. But not ones you need to continually interact with from the command line. This particular program needs that. Dos isn't unavailable, just windows + r and cmd are disabled by IT. I can force a dos window to open by using a bat or python

Re: [Tutor] Cmd Advice

2012-02-05 Thread Bod Soutar
On Feb 5, 2012 3:31 PM, Dave Hanson d...@hansonforensics.co.uk wrote: Thanks Alan. I have ran python programs before at work. But not ones you need to continually interact with from the command line. This particular program needs that. Dos isn't unavailable, just windows + r and cmd are

Re: [Tutor] Cmd Advice

2012-02-05 Thread Walter Prins
Hello Dave, On 5 February 2012 15:26, Dave Hanson d...@hansonforensics.co.uk wrote: I can force a dos window to open by using a bat or python program. OK, so the command prompt issue is really a red herring then from what I can tell. Work around the standard limitations of your desktop in

[Tutor] ploting of a square well

2012-02-05 Thread Debashish Saha
-- Forwarded message -- From: Debashish Saha silid...@gmail.com Date: Sun, Feb 5, 2012 at 7:08 PM Subject: ploting of a square well To: tutor@python.org from pylab import * x=linspace(1,1000,1) a,b = 10,20 def v(x):    i=5;v0=2    for n in range(1,1+i):        if x(n-1)*(a+b)

Re: [Tutor] ploting of a square well

2012-02-05 Thread Peter Otten
Debashish Saha wrote: from pylab import * x=linspace(1,1000,1) a,b = 10,20 def v(x): i=5;v0=2 for n in range(1,1+i): if x(n-1)*(a+b) and xa+(n-1)*(a+b): return 0 elif xa+(n-1)*(a+b) and x(n)*(a+b) : return v0 #v=vectorize(v)

Re: [Tutor] ploting of a square well

2012-02-05 Thread Asokan Pichai
Try changing plot(x, v) to plot(x, v(x)) Asokan Pichai We are all atheists about most of the gods that societies have ever believed in. Some of us just go one god further. – Richard Dawkins ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] ploting of a square well

2012-02-05 Thread Asokan Pichai
On Sun, Feb 5, 2012 at 11:16 PM, Asokan Pichai paso...@talentsprint.com wrote: Try changing plot(x, v) to plot(x, v(x)) Asokan Pichai But your v(x) is probably in need of changing. I am answering from a machine with a small screen and no python Hence no definite statements. Asokan Pichai

Re: [Tutor] Cmd Advice

2012-02-05 Thread Dave Hanson
Thanks walter. Ill have a go and report back. Thanks Dave On Feb 5, 2012 4:35 PM, Walter Prins wpr...@gmail.com wrote: Hello Dave, On 5 February 2012 15:26, Dave Hanson d...@hansonforensics.co.uk wrote: I can force a dos window to open by using a bat or python program. OK, so the

Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
More details: I want it to be something similar to this: powdertoy.co.uk. It will have different elements, though. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
Hey List, I am thinking about making a sandbox game. Where should I start? Has anyone done this before? I'm having trouble in MANY places, and I couldn't find any similar projects with a Google search. ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] Sandbox Game

2012-02-05 Thread Robert Berman
On 02/05/2012 02:43 PM, Nate Lastname wrote: Hey List, I am thinking about making a sandbox game. Where should I start? Has anyone done this before? I'm having trouble in MANY places, and I couldn't find any similar projects with a Google search.

Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
Hello Robert, I appreciate the reply, but I have two things to say: 1. Your nastiness is not appreciated or really needed. 2. If you look at the results, none of them actually give relavant info. I DID do research before I asked here, extensively, and found nothing. Thanks, The Defenestrator.

Re: [Tutor] Sandbox Game

2012-02-05 Thread Alan Gauld
On 05/02/12 20:44, Nate Lastname wrote: I appreciate the reply, but I have two things to say: 1. Your nastiness is not appreciated or really needed. I don't think Robert intended to be nasty. But you don't really give us much of a clue what you want. There is a ton of stuff on Google, if it

Re: [Tutor] Sandbox Game

2012-02-05 Thread Steven D'Aprano
Nate Lastname wrote: Hey List, I am thinking about making a sandbox game. Where should I start? Has anyone done this before? I'm having trouble in MANY places, and This mailing list is for learning the Python programming language, not for answering arbitrary questions about anything