Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread D. Hartley
Just catching up on a few replies: Alan - yes, Adam pointed out my silly error, and it solved what I thought was a much bigger problem. Very funny how these things go sometimes. And to anyone who's interested: If you'd like a copy, just shoot me an email and I can zip it up and send it to you.

Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread Jacob S.
>Good, good. I probably wouldn't have been able to help you if it was something so simple but that >screws up your program and makes it hard to find out just what is going on. Anyway good look with >anymore tidying on that you might be doing. Any chance of a copy?>>Adam   Denise, Can

Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread Alan G
>enemyship_sprites.add(Enemy((cols*60)+20, (rows*40)+30), level) Check your parens... The closing one after 30 closes the constructor list. level is outside so you effectively have sprites.add(Enemy(X,Y), level) HTH, Alan G. ___ Tutor mai

Re: [Tutor] A more Pythonic way to do this

2005-06-30 Thread Adam Bark
Good, good. I probably wouldn't have been able to help you if it was something so simple but that screws up your program and makes it hard to find out just what is going on. Anyway good look with anymore tidying on that you might be doing. Any chance of a copy? AdamOn 7/1/05, D. Hartley <[EMAIL PR

Re: [Tutor] A more Pythonic way to do this

2005-06-30 Thread D. Hartley
. it was a paren. I was so worried that I just wasn't figuring it all out, that I had tried to write elegant code and wasnt understanding the fundamentals, and the only reason it didnt work was because I left out a paren. I actually laughed until I cried. Thanks for that. And yes, it works

Re: [Tutor] A more Pythonic way to do this

2005-06-30 Thread Brian van den Broek
D. Hartley said unto the world upon 30/06/2005 18:11: > Hey guys! > > I have a 'quest,' and at first glance this email looks long, but the > problem is probably not as complex as the length implies. Please bear > with me, if I could get some advice on this particular problem, it > would go along

Re: [Tutor] A more Pythonic way to do this

2005-06-30 Thread Adam Bark
Here's the problem --> enemyship_sprites.add(Enemy((cols*60)+20, (rows*40)+30), level)     1,2   1    2    1  0 you've put a braket after +30 which ends the Enemy call. The numbering is +1 for op

[Tutor] A more Pythonic way to do this

2005-06-30 Thread D. Hartley
Hey guys! I have a 'quest,' and at first glance this email looks long, but the problem is probably not as complex as the length implies. Please bear with me, if I could get some advice on this particular problem, it would go along way toward helping me be a better Python programmer. Some of you