Created
December 10, 2008 02:19
-
-
Save batok/34201 to your computer and use it in GitHub Desktop.
hack to make virtual and grouping objectlistview in Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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