Re: Sequencing images using tkinter?

2014-08-31 Thread theteacher . info
Okay. Got it now. Your help is much appreciated. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
How do you exit from this function? def next_image(): myLabel.config(image=random.choice(monster_images)) # tell tkinter to invoke next_image() again after 200 miliseconds root.after(200, next_image) -- https://mail.python.org/mailman/listinfo/python-list

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Although getting next_image to run for e.g. 10 times in a for loop is still something I can't get to work. It only displays one image. -- https://mail.python.org/mailman/listinfo/python-list

Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Peter - Thanks! I've had a play around and followed your advice and have something that should take me on to the next step! This is what I have so far and it works, Thanks. from tkinter import * from tkinter import ttk import random root = Tk() root.title("Messing about") def next_image():

Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
I've started to learn to use tkinter but can't seem to rotate images. Here is a Python 3.4 program to illustrate the problem. Anyone spot why the for loop doesn't seem to want to display a sucssession of images please? Thanks. import sys from tkinter import * import random from time import sleep