Re: [Tutor] Relative import help

2012-09-22 Thread Matthew Ngaha
> try > import ../my_module > instead of > import ..my_module > and see what happens. > Your problem may be just that you haven't included the separator. > > .. means one directory higher but you must separate it from the file name. > > Two directories higher would be > ../../my_module sadly this

Re: [Tutor] Relative import help

2012-09-22 Thread Matthew Ngaha
> You probably have a path that reaches into Domestic or Europe sub-package. > That can happen if e. g. Project/Domestic/Europe is your current working > directory. > > Try to cd into the Project folder's parent directory and see if > > $ python -c 'import Project.Domestic.Europe.winners' > > works

Re: [Tutor] Relative import help

2012-09-22 Thread Matthew Ngaha
> Not impossible, but I doubt that. > > Have you followed the instructions *exactly*? If not, you have > probably missed something. What book is it? > > Otherwise, the book and you are probably using different versions of > Python. What version of Python are you using, and what is the book > using?

[Tutor] Relative import help

2012-09-22 Thread Matthew Ngaha
i have an assignment from a book to practice implementing relative imports. it gave a very clear and easy to follow explanation, but my results are proving the instructions are wrong. here's what i have tried. my folder structure: Project / __init__.py main.py Domestic / __init__

Re: [Tutor] simon game issues

2012-09-14 Thread Matthew Ngaha
> It would appear you're running some form of event loop, such as > wxpython, tkinter, pygame, or whatever. If so, you have to do your > delays using the mechanism that system defines, not using sleep(). As > you've discovered, sleep() stops the whole thread, and that's not what > you want. What

[Tutor] simon game issues

2012-09-13 Thread Matthew Ngaha
Hi guys. my Python tutorial set me a task to recreate a simon game using livewires. http://www.youtube.com/watch?v=agUABjGAJww this is quite long, i understand if you can't help right away summary: i create 4 squared shaped objects(red, blue, green, yellow) as instances for a class derived from th

Re: [Tutor] setting a timer

2012-09-12 Thread Matthew Ngaha
> Get a slower computer. > > I expect that if you find an old Commodore 64 from 1982, or perhaps > an 1984 Apple Macintosh, it might be slow enough for your count down > idea to work. But with modern computers, counting up to, or down from, > 5 is more or less instantaneous in human terms. > >

[Tutor] setting a timer

2012-09-12 Thread Matthew Ngaha
i have a way to set a timer for creating new objects copied from a book but as i have started my next exercise in a very different way, i want to avoid that math method/formula as it will cause me to rearrange some classes totally... i tried a simple method but its not working. any ideas? heres my

Re: [Tutor] simon says

2012-09-11 Thread Matthew Ngaha
> Sounds as though what is wanted in a Pythonic version of an early electronic > game "Simon" that was marketed back in the late 70's. It was roughly Frisbee > shaped although slightly larger. The top was divided into four > quadrant-shaped paddles each of a different color. The game consiste

Re: [Tutor] simon says

2012-09-10 Thread Matthew Ngaha
> This seems less about "simon says" the social game, and more about > "simon", the 1980s electronic toy. > > That toy had four colored buttons that would light up in a sequence, > playing a tone for each color. The player would then have to press > the buttons in the same sequence. The game woul

Re: [Tutor] simon says

2012-09-10 Thread Matthew Ngaha
>> hi guy my book has set me an assignment of a simon says game but i >> don't really understand what it's asking me to do. here's the text: It's the last chapter of Python Prgogramming for the absolute beginner. they have covered all the basics. Even simple tkinter apps and Pygame games. If i und

Re: [Tutor] simon says

2012-09-10 Thread Matthew Ngaha
> You should read up on the Simon Says rules and such. It's an > established, old game. Once you get that, then work on replicating it > through software. > thanks for your input. i understand Simon Says. I'm just struggling to see the connection with the assignment. a sequence of colours and soun

[Tutor] simon says

2012-09-10 Thread Matthew Ngaha
hi guy my book has set me an assignment of a simon says game but i don't really understand what it's asking me to do. here's the text: write a version of the simon says game where a player has to repeat an ever-growing, random sequence of colours and sounds using the keyboard. Anyone understand t

Re: [Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
thanks for all the help guys. Cherrypy it is. i will take a look at some cgi tutorials first, as Alan suggested, to get a good understanding of how things work. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Matthew Ngaha
> What instructions are you talking about? > > I'm sure that was very clear in your head when you wrote that, but think > about how it looks to us. We could be reading your email hours, days, > even months later. We see your comment about complicated instructions, > but all context is lost and we h

Re: [Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
sorry steven i keep replying to sender and not tutor:( ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
Hi all, i had a recent post about learning about guis and web applications. i decided to try guis 1st, but i also decided that maybe a very very very simple web framework would not be too much work for me to study once in while. I decided on Flask because i read it's the simpliest framework out of

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Matthew Ngaha
SORRY i wrote to you not the mailing list:( im a beginner myself, and those instructions seem very complicated for me. But i did install Python and everything included with no problem. You need at least Python 3.1 for this book we have. its what the author recommended. version 2.7 as you have s

Re: [Tutor] I need Help

2012-09-08 Thread Matthew Ngaha
this is the same book i bought a few months ago to get me started. the instructions i remember where clear for windows. if there is a problem with the download files on the site, the author has the files on his own site also: http://www.programgames.com/page4.html save or run the file, once insta

Re: [Tutor] help me decide

2012-09-06 Thread Matthew Ngaha
hey guys i just like to thank everyone for their input. Its really helped me in deciding a lot of things. also @ Alan i think? as ive started writing this mail it won;t let me look up previous senders but thanks for your input. Also your field of work sounds very interesting indeed. I can't dare to

Re: [Tutor] help me decide

2012-09-05 Thread Matthew Ngaha
Hi Alan thanks so much for your helpful answers. > probably wxPython or GTk > But if you want to get serious about GUIs I'd probably suggest wxPython > instead - it ultimately is more powerful and complete and if you are only > just starting will be easy to learn whereas learning Tkinter and conv

Re: [Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
hey you didnt read my question:( i dont enjoy either because i have no experience with them. so im asking questions about peoples personal experiences with the 2 areas which can give me further information to research on. ___ Tutor maillist - Tutor@pyth

Re: [Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
sorry wrong i didnt send mail right. hey i didnt explain it properly, i wasn't asking what language to use or learn. I am only going to be using Python. I meant whic area to study on 1st, GUI programing e.g Tkinter or Programming with a web framwork e.g Django. _

[Tutor] help me decide

2012-09-04 Thread Matthew Ngaha
hey guys as i program more, i think of silly questions i would like answers to. if anyone doesnt mind entertaining my question, please do answer:) I have just about finished my beginner tutorial, just a few exercises left. i feel confident using Python now but im still not sure which direction i wa

Re: [Tutor] calculation issue.

2012-08-26 Thread Matthew Ngaha
thanks guys. Eryksun your explaination was brilliant and clear. i understood what you explained but got a bit confused with this line: The bottom of the next pizza is at y = 100 + 100 = 200 if this Pizza (pizza.b) was on hold at position y = 100 and the previous pizza(pizza.a) had fallen an addi

[Tutor] calculation issue.

2012-08-26 Thread Matthew Ngaha
Hi guys ive been reading a beginners book on python and the author created a simple game with the liewires package. I understand the explaination but there is just 1 part that i don't quite get. I'm not great at maths but this isn't complex at all. i don't know if i should post the whole code, cos'

Re: [Tutor] Error message...

2012-08-25 Thread Matthew Ngaha
>Hi Victoria. im a total beginner aswell but i noticed something. shouldnt this >line: else: return s(0) == s(-1) and isPalindrome (s[1:-1]) be else: return s[0] == s[-1] and isPalindrome (s[1:-1]) it looks like you have the string s as a function which you are trying to call. what you wante

Re: [Tutor] newbie Questions

2012-07-16 Thread Matthew Ngaha
6 PM, Alexandre Zani wrote: > On Mon, Jul 16, 2012 at 5:09 AM, Matthew Ngaha > wrote: > > Hi all. I'm new to Python and Programming in general. I've started out > with > > Python for beginners, and so far so good. My friend who i might add, is > not > &

[Tutor] newbie Questions

2012-07-16 Thread Matthew Ngaha
Hi all. I'm new to Python and Programming in general. I've started out with Python for beginners, and so far so good. My friend who i might add, is not a programmer but has had experience in the world of programming (i dont know how much but he claims a lot), has told me to forget about Python and

<    1   2