Revert "Revert "Don't reclear and repopulate the whole fitting view whenever anything""

This reverts commit 2fe3b8271d.
This commit is contained in:
cncfanatics
2010-09-15 17:21:27 +02:00
parent ba7d33466d
commit 32531728b0
2 changed files with 32 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ class Display(wx.ListCtrl):
selection = []
self.Freeze()
sel = self.GetFirstSelected()
while sel != -1:
selection.append(sel)
@@ -113,6 +113,17 @@ class Display(wx.ListCtrl):
self.Thaw()
def refresh(self, stuff):
self.Freeze()
item = -1
for id, st in enumerate(stuff):
item = self.GetNextItem(item)
for i, col in enumerate(self.activeColumns):
self.SetStringItem(item, i, col.getText(st), col.getImageId(st))
self.SetItemData(item, id)
self.Thaw()
def getColumn(self, point):
x = point[0]
total = 0