[Tutor] create an empty array of images

i i iaidas4 at gmail.com
Sat Jan 3 09:16:00 CET 2009

yes i want to clear the images before the next iteration,here is the pseudo
code what i want to do

a = [ ]
for i in range(self.numOne)
 to create an empty array, and append the index i to the array and pass this
index to gtk image,how i can do this in *for-in* statement

0 for i in range (self.numOne)
self.numOne = random.randint(1,10)
  for i in range(self.numOne):
       self.image = gtk.Image()
       self.fixed.put(self.image, i*25, 0)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090103/9c7d4b43/attachment.htm>

More information about the Tutor mailing list