]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/VirtualListCtrl.py
compilation fix (for !PCH)
[wxWidgets.git] / wxPython / demo / VirtualListCtrl.py
index 23b4b627da7dcb580e45ca9964a69b6f13190ee1..b30b4caf4c7f9ebaa4098d4c5c6507c8cca9e764 100644 (file)
@@ -51,8 +51,10 @@ class TestVirtualList(wxListCtrl):
     def OnGetItemText(self, item, col):
         return "Item %d, column %d" % (item, col)
 
+
     def OnGetItemImage(self, item):
-        return 0
+        return -1  # if used you should return the index in the ImageList
+
 
     def OnGetItemAttr(self, item):
         if item % 3 == 1: