[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)
a.append([i])
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.image.set_from_file("./Pink-Flower-32x32.png")
self.fixed.put(self.image, i*25, 0)
self.image.show()
thanks
-------------- 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