Re: [Tutor] Thought of some other things.

2008-02-06 Thread Senthil Kumaran
On Feb 6, 2008 11:38 PM, Timothy Sikes <[EMAIL PROTECTED]> wrote: > > First off, I was running my script from my flash drive-That could have > caused something. Next, I have possible found something IN the > location where I ran the script, I found a pic_db.bat with stuff in it... It >

[Tutor] Thought of some other things.

2008-02-06 Thread Timothy Sikes
First off, I was running my script from my flash drive-That could have caused something. Next, I have possible found something IN the location where I ran the script, I found a pic_db.bat with stuff in it... It still doesn't explain why the program crashed, but it does explain why I di

[Tutor] Pixelize ubuntu python script acting odd.

2008-02-06 Thread Timothy Sikes
so I recently installed ubuntu and started messing around with some of the programs. Pixelize takes a picture, then using a database of other pictures, makes a picture out of the database. The only way I know of to add pictures to the database is through the command 'make_db ' It doesn't see

Re: [Tutor] designing POOP

2008-02-06 Thread Kent Johnson
bhaaluu wrote: > How do you design POOP? What are the guidelines you keep in mind > to design "good" POOP? Can an absolute beginner learn to design POOP? I have mostly stayed out of this thread for lack of time and because Alan is doing a great job, but I think I will chime in a bit because this

Re: [Tutor] designing POOP

2008-02-06 Thread Alan Gauld
"bhaaluu" <[EMAIL PROTECTED]> wrote Let me preface this message by saying that I've never written a TAG before - either procedurally nor using OOP. so I don't know if the following approach is a good way to go or not. However it's where I feel things moving... > I have a tendancy to think abo

Re: [Tutor] designing POOP

2008-02-06 Thread bhaaluu
On Feb 6, 2008 12:06 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > "bhaaluu" <[EMAIL PROTECTED]> wrote > > > Here is my description, in plain English. > > > > Text Adventure Game Requirements: > > 1. The Explorer enters her name at a prompt. > > 2. Other things are initialized at this point. > > 3. T

Re: [Tutor] designing POOP

2008-02-06 Thread bhaaluu
Thank you Alan. This helps tremendously! I had gone to your OOP tutorial and read it over (again) and the closest thing I could find on that page was the Bank Account example that had a list of things a bank account might be expected to do. So away I went, making a list. The problems with that ap

Re: [Tutor] Import error in UNO

2008-02-06 Thread Chris Calloway
On Feb 6, 2008, at 5:23 AM, muhamed niyas wrote: I can import when i moved to the uno location. pls see the messages in the terminal. C:\>cd "Program Files\OpenOffice.org 2.0\program"\ C:\Program Files\OpenOffice.org 2.0\program>python Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 32 b

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote >I can import when i moved to the uno location. > pls see the messages in the terminal. > > > C:\>cd "Program Files\OpenOffice.org 2.0\program"\ > C:\Program Files\OpenOffice.org 2.0\program>python > Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 3

Re: [Tutor] Ending a script

2008-02-06 Thread Alan Gauld
"Damian Archer" <[EMAIL PROTECTED]> wrote > When I am running a script in cmd the script runs but the cmd > windows closes > immediately after the script has finished. > > Is there anyway I can freeze the cmd window until a user actually > closers > it?? I discuss various ways to address this

Re: [Tutor] Ending a script

2008-02-06 Thread Chris Fuller
On Wednesday 06 February 2008 09:23, Damian Archer wrote: > When I am running a script in cmd the script runs but the cmd windows > closes immediately after the script has finished. > > Is there anyway I can freeze the cmd window until a user actually closers > it?? There are numerous ways to do t

Re: [Tutor] Games

2008-02-06 Thread Alan Gauld
"Seon Kang" <[EMAIL PROTECTED]> wrote > When I run some of my games on python, I notice they seem to lag > and take > up a large portion of my CPU when the game itself is actually pretty > simple. > why does this happen? I run a window XP and my computer should have > no > problems with this

Re: [Tutor] designing POOP

2008-02-06 Thread Alan Gauld
"bhaaluu" <[EMAIL PROTECTED]> wrote > Here is my description, in plain English. > > Text Adventure Game Requirements: > 1. The Explorer enters her name at a prompt. > 2. Other things are initialized at this point. > 3. The layout of the Castle is defined. > 4. Treasure is placed in rooms in the

Re: [Tutor] designing POOP

2008-02-06 Thread bhaaluu
On Feb 5, 2008 3:02 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > Describe the problem in plain English text(or whatever you > language is!). > -- > Alan Gauld > Author of the Learn to Program web site > http://www.freenetpages.co.uk/hp/alan.gauld > Here is my description, in plain English. Text

Re: [Tutor] Ending a script

2008-02-06 Thread Kent Johnson
Damian Archer wrote: > When I am running a script in cmd the script runs but the cmd windows > closes immediately after the script has finished. > > Is there anyway I can freeze the cmd window until a user actually > closers it?? End your script with something like raw_input('Press any key to e

Re: [Tutor] designing POOP

2008-02-06 Thread Tiago Saboga
On Wed, Feb 06, 2008 at 08:58:09AM -, Alan Gauld wrote: > Thus always base inheriotance on common mbehaviour not on > common data. > > I hope that makes it clearer. Thanks Alan, it's clear now. And now I know that this is not one of the mistakes I am making ;) Tiago Saboga. _

[Tutor] Ending a script

2008-02-06 Thread Damian Archer
When I am running a script in cmd the script runs but the cmd windows closes immediately after the script has finished. Is there anyway I can freeze the cmd window until a user actually closers it?? ___ Tutor maillist - Tutor@python.org http://mail.pyt

[Tutor] Games

2008-02-06 Thread Seon Kang
When I run some of my games on python, I notice they seem to lag and take up a large portion of my CPU when the game itself is actually pretty simple. why does this happen? I run a window XP and my computer should have no problems with this simple of a game. Is the problem in my programming? Are t

Re: [Tutor] Import error in UNO

2008-02-06 Thread muhamed niyas
I can import when i moved to the uno location. pls see the messages in the terminal. C:\>cd "Program Files\OpenOffice.org 2.0\program"\ C:\Program Files\OpenOffice.org 2.0\program>python Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "cred

Re: [Tutor] designing POOP

2008-02-06 Thread bhaaluu
On Feb 5, 2008 3:02 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > One of the earliest ways of doing this has now fallen sonewhat > out of favour but in practie I find it works quite well for beginners > is: > > Describe the problem in plain English text(or whatever you > language is!). Underline th

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote import uno > > I am not getting the promt >>> after importing that. OK, That suggests a problem in the uno module itself. Yet ISTR you said you could import if you changed to the directory and ran Python there? Can you try that again just to confi

Re: [Tutor] Import error in UNO

2008-02-06 Thread muhamed niyas
When i import >>>import uno I am not getting the promt >>> after importing that. On Feb 6, 2008 2:29 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "muhamed niyas" <[EMAIL PROTECTED]> wrote > > > Thanks for your kind response. I tried to include the path > > 'C:\Program > > Files\OpenOffice.org

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote > Thanks for your kind response. I tried to include the path > 'C:\Program > Files\OpenOffice.org 2.0\program' in PYTHONPATH. but now i didnt get > any error message but its hanging while importing. Pls advice me to > correct > this. > What happens if

Re: [Tutor] designing POOP

2008-02-06 Thread Alan Gauld
"Tiago Saboga" <[EMAIL PROTECTED]> wrote >> sub types of an abstract superclass. Do NOT use data >> attributes for this, always base inheritance heirarchies >> on behaviour. > > Could you please elaborate on this last sentence? I don't understand > what you mean, and I feel I may be on this track.