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

Re: [pygame] coloring book program to try



File "coloring_book.py", line 173, in check_click
   for layer in self.layers[::-1]:
TypeError: sequence index must be integer
Are you using Python 2.3 or newer? It is required for the extended slice syntax.
Hrm is there a better way to reverse the order of my sequence that works for Python 2.2 users also?


--
"When Government fears the people, it's liberty. When people fear the
Government, it's tyranny." -- Benjamin Franklin

Michael <mogmios@mlug.missouri.edu>
http://kavlon.org