PyView window’s default display on Windows 7, created by running the slideShow-
Plus.py script we’ll see in Example 11-6 ahead.
Though it’s not obvious as rendered in this book, the black-on-red label at the top gives
the pathname of the photo file displayed. For a good time, move the slider at the bottom
all the way over to “0” to specify no delay between photo changes, and then click Start
to begin a very fast slideshow. If your computer is at least as fast as mine, photos flip
by much too fast to be useful for anything but subliminal advertising. Slideshow photos
are loaded on startup to retain references to them (remember, you must hold on to
image objects). But the speed with which large GIFs can be thrown up in a window in
Python is impressive, if not downright exhilarating.
The GUI’s Start button changes to a Stop button during a slideshow (its text attribute
is reset with the widget config method). Figure 11-13 shows the scene after pressing
Stop at an opportune moment.
In addition, each photo can have an associated “notes” text file that is automatically
opened along with the image. You can use this feature to record basic information about
the photo. Press the Note button to open an additional set of widgets that let you view
Figure 11-12. PyView without notes
728 | Chapter 11: Complete GUI Programs