SWIGged updates for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-03-07 20:36:54 +00:00
parent 7d0180d415
commit f0972d1ea4
11 changed files with 367 additions and 76 deletions

View File

@@ -653,6 +653,16 @@ class wxListCtrlPtr(wxControlPtr):
def ClearColumnImage(self, col):
self.SetColumnImage(col, -1)
def Append(self, entry):
'''Append an item to the list control. The entry parameter should be a
sequence with an item for each column'''
if len(entry):
pos = self.GetItemCount()
self.InsertStringItem(pos, str(entry[0]))
for i in range(1, len(entry)):
self.SetStringItem(pos, i, str(entry[i]))
return pos
class wxListCtrl(wxListCtrlPtr):
def __init__(self,*_args,**_kwargs):