From: Kevin A. <ka...@us...> - 2004-07-21 20:09:16
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16813/components Modified Files: choice.py combobox.py list.py Log Message: added appendItems Index: list.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/list.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** list.py 4 May 2004 17:15:42 -0000 1.25 --- list.py 21 Jul 2004 20:09:04 -0000 1.26 *************** *** 109,114 **** # KEA more wxListBox methods ! def append( self, aString ) : ! self.Append( aString ) def clear( self ) : --- 109,117 ---- # KEA more wxListBox methods ! def append(self, aString): ! self.Append(aString) ! ! def appendItems(self, aList): ! self.AppendItems(aList) def clear( self ) : Index: choice.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/choice.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** choice.py 4 May 2004 17:15:42 -0000 1.19 --- choice.py 21 Jul 2004 20:09:04 -0000 1.20 *************** *** 67,70 **** --- 67,73 ---- self.Append(aString) + def appendItems(self, aList): + self.AppendItems(aList) + items = property(_getItems, _setItems) Index: combobox.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/combobox.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** combobox.py 9 May 2004 23:58:08 -0000 1.27 --- combobox.py 21 Jul 2004 20:09:04 -0000 1.28 *************** *** 86,95 **** def _setItems(self, items): self.Clear() ! for item in items : ! self.Append(item) def append( self, aString ) : self.Append( aString ) items = property(_getItems, _setItems) text = property(wx.ComboBox.GetValue, wx.ComboBox.SetValue) --- 86,97 ---- def _setItems(self, items): self.Clear() ! self.AppendItems(items) def append( self, aString ) : self.Append( aString ) + def appendItems(self, aList): + self.AppendItems(aList) + items = property(_getItems, _setItems) text = property(wx.ComboBox.GetValue, wx.ComboBox.SetValue) |