[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Game Objects 0.0.2



Will McGugan wrote:
I _could_ simply wrap the setter value with float(), but that would leed to the situation where you could do col.r = "20" - which is just wrong.

You could force it to a float by multiplying it by 1.0.
That would work on ints but not strings.

--
Greg