
Nice.France
畫畫,是個人的事。
只要有心,人人都是個畫家。
*****
This sample basically provides most of the features I need:
2) to view images in forward/backward direction
3) to toggle Slide View
What's left is:
1) load image files recursively in a folder
2) show image randomly instead of in predefined sequence
3) rotate the image according to the exif orientation information
4) launch image file format associated application to do other actions
5) track the viewed sequence in order to view backward
solution:
1) this is easy part. Check out os.path.walk and search on the internet.
2) use "from random import choice"
3) import exif.py and check the value of "Image Orientation".
use wxImage.Rotation90 to rotate image accordingly
4) use os.startfile()
5) use a list to keep track of viewed photos
SOURCE:
http://dl.dropbox.com/u/10576598/image_viewer3.py





























