Joseph Quigley wrote:

> When I use:
> files = os.listdir(<theimagesdirectory>)
> x = 0
> direction = 1
> while True:
>     ShowImg(files[x]) # An image display function
>     x += -1
> 
> it doesn't display the images in the right order! It will skip from
> ga050123.gif and go to ga050120.gif!

Why not do something like this? :

files = os.listdir(<theimagesdirectory>)
for file in files:
        ShowImg(file)

I'm also curious as to what context the 'direction' variable was being
used in.

Cheers.

-- 

Joshua Simpson -- dataw0lf.org
Lead Network Administrator/Engineer Aero-Graphics Inc.
[EMAIL PROTECTED]
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to