|
From: Kevin A. <ka...@us...> - 2004-10-11 01:53:36
|
Update of /cvsroot/pythoncard/PythonCard/tools/oneEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15881 Modified Files: tabcodeEditor.py Log Message: further protection for missing pageChanged event on Mac Index: tabcodeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/oneEditor/tabcodeEditor.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tabcodeEditor.py 10 Oct 2004 23:51:00 -0000 1.8 --- tabcodeEditor.py 11 Oct 2004 01:53:25 -0000 1.9 *************** *** 536,540 **** selection = self.components.notebook.GetSelection() #print selection, len(self.pages) ! if selection <= len(self.pages) - 1: self.currentPageNumber = selection self.currentPage = self.pages[selection] --- 536,540 ---- selection = self.components.notebook.GetSelection() #print selection, len(self.pages) ! if selection != -1 and selection <= (len(self.pages) - 1): self.currentPageNumber = selection self.currentPage = self.pages[selection] |