Programming friction

2009-01-13 Thread killsto
I'm trying to implement a basic user controlled sliding box with pygame. I have everything worked out, except for two things. The acceleration is changed once a second (for meters/second) this leads to very jumpy movement. I need to add a way to check how long it takes the program to loop and mult

Re: Object help

2009-01-11 Thread killsto
> > > Thanks. That makes sense. It helps a lot. Although, you spelled color > > wrong :P. > > At this time of day you are likely to find yourself communicating with > Australians. Get used to it :-) > > Cheers, > John I was kidding. IMO, we Americans should spell color like everyone else. Heck, us

Re: Object help

2009-01-11 Thread killsto
On Jan 11, 2:20 pm, Steven D'Aprano wrote: > On Sun, 11 Jan 2009 14:06:22 -0800, killsto wrote: > > I have a class called ball. The members are things like position, size, > > active. So each ball is an object. > > > How do I make the object without specifically sayin

Object help

2009-01-11 Thread killsto
I have a class called ball. The members are things like position, size, active. So each ball is an object. How do I make the object without specifically saying ball1 = ball()? Because I don't know how many balls I want; each time it is different. The balls are to be thrown in from the outside of

Beautiful soup tag attributes - Dictionary?

2008-11-30 Thread killsto
The documentation says I can find attributes of tags by using it as a dictionary. Ex: product = p.findAll('dd') print product['id'] However, when I try that python thinks I am slicing it. When I print product, it works but is a list. I am pretty sure I have the latest version. Any ideas? Refere