]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/controls2.py
Added dialog tabbing to wxX11.
[wxWidgets.git] / wxPython / src / msw / controls2.py
index b550f38f9e3def99a42457a75bf527b258270824..1f9aaba13e9dda9d7d2a5ab4ae33aff181ca0d4a 100644 (file)
@@ -662,6 +662,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):