From: Kevin A. <ka...@us...> - 2004-08-26 23:25:15
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23785/components Modified Files: list.py Log Message: removed getSelections since we don't support multi-select lists changed _isSelected back to isSelected Index: list.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/list.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** list.py 21 Jul 2004 20:09:04 -0000 1.26 --- list.py 26 Aug 2004 23:25:06 -0000 1.27 *************** *** 93,112 **** return items - # KEA fixed setValue - # there should be more flexibility than clearing the whole list - # and replacing it with a new one def _setItems( self, aList ) : - #self._delegate.setValue( aList ) - #self.Clear() - #self.InsertItems( aList, 0 ) - # KEA 2003-07-26 - # I'm just now realizing I could have been using Set self.Set(aList) - def getSelections( self ) : - return self.GetSelections() - - # KEA more wxListBox methods - def append(self, aString): self.Append(aString) --- 93,99 ---- *************** *** 134,138 **** # KEA was getSelected ! def _isSelected( self, aPosition ) : """Determines whether an item is selected. aPosition is the zero-based item index --- 121,125 ---- # KEA was getSelected ! def isSelected( self, aPosition ) : """Determines whether an item is selected. aPosition is the zero-based item index |