Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with arrays and paint  RSS feed

 
ed jones
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to make 5 rows each with 10 blocks of Rectangles

When I run this I only see the last row, and I can't figure out why?

Also is there a better way to approach this ? / ie: creating Rectangle objects.

thanks for your time
 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem is with the for loops; read carefully what you are entering into the array and what you are retrieving.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!