From: Kevin A. <ka...@us...> - 2004-07-17 17:46:32
|
Update of /cvsroot/pythoncard/PythonCard/samples/slideshow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31945/samples/slideshow Modified Files: slideshow.py slideshow.rsrc.py Log Message: added ESC key to stop slideshow and get out of fullscreen mode Index: slideshow.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/slideshow/slideshow.rsrc.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** slideshow.rsrc.py 10 May 2004 05:02:41 -0000 1.11 --- slideshow.rsrc.py 17 Jul 2004 17:46:24 -0000 1.12 *************** *** 63,66 **** --- 63,69 ---- 'checkable':1, 'checked':0}, + { 'type':'MenuItem', + 'name':'menuSlideshowStopSlides', + 'label':'Stop Slides\tESC'}, {'type':'MenuItem', 'name':'menuSlideShowSep1', Index: slideshow.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/slideshow/slideshow.py,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** slideshow.py 10 May 2004 00:45:22 -0000 1.38 --- slideshow.py 17 Jul 2004 17:46:24 -0000 1.39 *************** *** 370,373 **** --- 370,385 ---- self.ShowFullScreen(self.menuBar.getChecked('menuSlideshowToggleFullScreen')) + def on_menuSlideshowStopSlides_select(self, event): + # KEA 2004-07-17 + # if the slideshow is running in fullscreen mode then + # people can panic not knowing how to stop the slideshow and get + # control back so I made the ESC key stop the slideshow and + # go back to a normal window size + if self.clockTimer.isRunning(): + self.clockTimer.stop() + if self.menuBar.getChecked('menuSlideshowToggleFullScreen'): + self.menuBar.setChecked('menuSlideshowToggleFullScreen', False) + self.ShowFullScreen(False) + def on_menuSlideshowFirstSlide_select(self, event): if self.fileList is not None and self.fileList != []: |