Re: [Tutor] create an empty array of images

2009-01-03 Thread i i
gtk.Image() self.image.set_from_file("./Pink-Flower-32x32.png") self.fixed.put(self.image, i*25, 0) self.image.show() thanks On Sat, Jan 3, 2009 at 6:01 PM, Kent Johnson wrote: > On Sat, Jan 3, 2009 at 3:16 AM, i i wrote: > > yes i want to cle

[Tutor] create an empty array of images

2009-01-03 Thread i i
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

[Tutor] :initialize a for loop

2009-01-02 Thread i i
Hi, i am making an activity in glade.here is the code 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.sh

[Tutor] (no subject)

2008-12-16 Thread i i
Hi, Is their any site where i can find out about custom widget, GtkHTML, python gtkHtml. thanx a lot ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] random equation generator

2008-10-23 Thread i i
hi, can u tell me any good tutorial site for pygtk, any that contains detail explanation of pygtk. i want to develop a game,that will randomly generate the operands,and the answer,a user have to chosse from the operators(+,-,*,/). which function should i use to randomly generate equation. _