Re: [Tutor] Trouble with exercise regarding classes

2010-08-28 Thread Andrew Martin
Ok I think I got it. Thanks everybody. And sorry for the late reply. My classes have just started so learned python unfortunately must be bumped down on the priority list On Thu, Aug 26, 2010 at 4:32 AM, Alan Gauld alan.ga...@btinternet.comwrote: Andrew Martin amartin7...@gmail.com wrote I

[Tutor] Trouble with exercise regarding classes

2010-08-25 Thread Andrew Martin
I just starting programming and am trying to learn some python (ver 2.6). I am reading Python Programming: An Introduction to Computer Science by John Zelle. In chapter ten, the first programming exercise asks the reader to modify code from the chapter (below) . The code I added is highlighted.

Re: [Tutor] Trouble with exercise regarding classes

2010-08-25 Thread Andrew Martin
be retrieved by Projectile.getY. And how do I call the getY using the instance? On Wed, Aug 25, 2010 at 7:24 PM, Alan Gauld alan.ga...@btinternet.comwrote: Andrew Martin amartin7...@gmail.com wrote However, when I did so I got this error: TypeError: unbound method getY() must be called

Re: [Tutor] Difficulty Understanding Example Code for Blender Script

2010-07-23 Thread Andrew Martin
, Marc Tompkins marc.tompk...@gmail.com wrote: On Wed, Jul 21, 2010 at 9:48 PM, Andrew Martin amartin7...@gmail.com wrote: This code was part of a Blender script to build a 3d bar graph, so I don't know if understanding Blender is a prereq for understanding this code. The function

[Tutor] Difficulty Understanding Example Code for Blender Script

2010-07-21 Thread Andrew Martin
This code was part of a Blender script to build a 3d bar graph, so I don't know if understanding Blender is a prereq for understanding this code. The function is for the axis labels. def label(text,position,orientation='z'): txt=Text3d.New('label') txt.setText(text)

Re: [Tutor] Return error message for my script in Blender

2010-07-18 Thread Andrew Martin
Yeah ok I get it. I have to return something. I looked at the sample code provided on the book's website and found out what I am supposed to return. Thanks. I appreciate the responses, especially to this bonehead question. ___ Tutor maillist -

[Tutor] Return error message for my script in Blender

2010-07-17 Thread Andrew Martin
I am new to Blender and Python (2.6 on vista) and was trying to follow a tutorial in the book Blender 2.49 Scripting by Michel Anders. I was trying to write a script that would create a user interface where the user could select various aspect of an insect and the code would create a polygonal

Re: [Tutor] Problems installing

2010-06-30 Thread Andrew Martin
How exactly can I go about deleting __init__.pyc? Sorry, I am new to this so I need everything spelled out for me. On Wed, Jun 30, 2010 at 2:30 AM, Marc Tompkins marc.tompk...@gmail.comwrote: On Tue, Jun 29, 2010 at 10:35 PM, Andrew Martin amartin7...@gmail.comwrote: I just downloaded Python

[Tutor] Problems installing

2010-06-29 Thread Andrew Martin
I just downloaded Python 2.6.5 onto my windows vista laptop. I am attempting to install escript version 3: Solution of Partial Differential Equations (PDE) using Finite Elements (FEM). I downloaded the files and manually placed them in their appropriately place on my computer according to the

[Tutor] pydoc?

2010-06-18 Thread Andrew Martin
Hey, everyone, I am new to programming and just downloaded Python 2.6 onto my windows vista laptop. I am attempting to follow 4.11 of the tutorial called How to Think Like a Computer Scientist: Learning with Python v2nd Edition documentation (

Re: [Tutor] pydoc?

2010-06-18 Thread Andrew Martin
Alright I got it. Although i didn't end up doing any typing. All I did was go to start/module docs and then press open browser. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] pydoc?

2010-06-18 Thread Andrew Martin
On Fri, Jun 18, 2010 at 7:13 PM, Andrew Martin amartin7...@gmail.comwrote: Alright I got it. Although i didn't end up doing any typing. All I did was go to start/module docs and then press open browser. Thanks again and next time i will supply more info with the question

[Tutor] Problems with Importing into the Python Shell

2010-06-11 Thread Andrew Martin
Hey, everyone, I am new to programming and just downloaded Python 2.6 onto my windows vista laptop. I am attempting to follow 4.11 of the tutorial called How to Think Like a Computer Scientist: Learning with Python v2nd Edition documentation (