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

Re: [pygame] lists of tuples



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?