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

Re: [pygame] OcempGUI help neede on container



On, Tue Dec 27, 2005, Johan Geldenhuys wrote:

> I used&nbsp; the example and got this error: <br>
> """<br>
> for i in tbl_words.rows:<br>
> TypeError: iteration over non-sequence<br>
> """.<br>

I am an idiot, sorry. table.rows and table.columns are integers (I
should've known that...), thus you should use something like

for i in xrange (table.rows):
  for j in xrange (table.columns):
      ...

Regards
Marcus

Attachment: pgpnDI5FdZ1KR.pgp
Description: PGP signature