[pygtk] Fwd: image problem
i i
iaidas4 at gmail.com
Fri Jan 2 21:29:59 WST 2009
---------- Forwarded message ----------
From: i i <iaidas4 at gmail.com>
Date: Fri, Dec 26, 2008 at 10:36 PM
Subject: image problem
To: pygtk at daa.com.au
hi,
i am making an application.Its basically a learning game ,I want to set
the label to a string of random intigers,i also want to show equivalent
number of images in the box.
say i have a number that takes random.randint(0, 10).
i want to show images equivalent to the number that is shown in tab.here is
the code
self.fixed=self.wTree.get_widget("fixed1")
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.wTree.get_widget("fixed1").put(self.image, i*25, 0)
self.image.show()
self.image.clear() function clears the image and again reset the previous
and the new ones .I want to clear the previus images and again set the
number to the specified number in numOne .how can i do this.
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090102/e422cde7/attachment.htm
More information about the pygtk
mailing list