Skip to content

Instantly share code, notes, and snippets.

@batok
Created December 10, 2008 02:19
Show Gist options
  • Save batok/34201 to your computer and use it in GitHub Desktop.
Save batok/34201 to your computer and use it in GitHub Desktop.
hack to make virtual and grouping objectlistview in Mac OS X
def RefreshObjects(self, aList=None):
"""
Refresh all the objects in the given list
"""
self.lastGetObjectIndex = -1
# If no list is given, refresh everything
if aList:
for x in aList:
idx = self.GetIndexOf(x)
if idx != -1:
self.RefreshItem(idx)
else:
if self.GetItemCount() == 0:
pass
else:
self.RefreshItems(0, self.GetItemCount() - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment