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

Re: [pygame] lists of tuples



Oh, gotcha, the list is actually a list of the values, not references to the object attributes.  All right, but you could have lists of the objects themselves, Adam.

On 9/10/05, Adam <adam.jtm30@xxxxxxxxx> wrote:
On 10/09/05, Sami Hangaslammi < sami.hangaslammi@xxxxxxxxx> wrote:
On 9/10/05, Sami Hangaslammi <sami.hangaslammi@xxxxxxxxx> wrote:
> myList = [(sprite1, "text"), (sprite2, "output")]
> Then you can assign myList[0].position = (5,5)

Doh! What I mean of course is myList[0][0].position = (5,5)

--
Sami Hangaslammi

 
What's the matter with that?



--
Andrew Ulysses Baker
"failrate"