[Tutor] Tkinter problem (.create_image)

Kent Johnson kent37 at tds.net
Thu Oct 27 02:18:13 CEST 2005


Rob Dowell wrote:
> I am having a problem with Tkinter. The goal is a program that will copy 
> images from one folder to another then delete them from the source dir 
> after it is verified that they made it to the target dir. I have the 
> base functionality figured out (comments on that are welcome of course). 
> Now I want to have a gui that shows a small thumbnail of the image as it 
> is copied. Right now everything works fine except that the gui only 
> shows the last picture that is copied. Here is the code:

You have to give the GUI a chance to update by calling self.myParent.update_idletasks() after you set the new picture. You tell the GUI to show the picture but you never give a chance to do the actual work of drawing to the screen.

Kent



More information about the Tutor mailing list