import sys if len(sys argv= picdir sys argv[ elsepicdir /gifsroot tk(root title('pyview 'root iconname('pyview'label(roottext="python slide show viewer"pack(slideshow(rootpicdir=picdirbd= relief=sunkenroot mainloop(to give you better idea of what this core base class implementsfigure - shows what it looks like if run by itself--actuallytwo copies run by themselves by script called slideshow_frameswhich is in this book' examples distributionand whose main code looks like thisroot tk(label(roottext="two embedded slide showsframes"pack(slideshow(parent=rootpicdir=picdirbd= relief=sunkenpack(side=leftslideshow(parent=rootpicdir=picdirbd= relief=sunkenpack(side=rightroot mainloop(figure - two attached slideshow objects the simple slideshow_frames scripts attach two instances of slideshow to single window-- feat possible only because state information is recorded in class instance variablesnot in globals the slideshow_toplevels script (also in the book' examples distributionattaches two slideshows to two top-level pop-up windows instead in both pyviewan image and notes slideshow