Skip to content

Instantly share code, notes, and snippets.

@batok
Created December 10, 2008 02:23
Show Gist options
  • Select an option

  • Save batok/34202 to your computer and use it in GitHub Desktop.

Select an option

Save batok/34202 to your computer and use it in GitHub Desktop.
This is also a hack on ObjectListView.py to make the control work in virtual and group mode in Mac OS X
def RefreshObjects(self, aList=None):
"""
Refresh all the objects in the given list
"""
# We can only refresh everything
self.lastGetObjectIndex = -1
print self.GetItemCount()
if self.GetItemCount() == 0:
pass
else:
self.RefreshItems(0, self.GetItemCount()-1)
#self.Refresh()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment