Merge branch 'master' of evefit.org:pyfa

This commit is contained in:
cncfanatics
2010-09-23 18:21:58 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -112,6 +112,12 @@ class Display(wx.ListCtrl):
if stuff == None:
return
selection = []
sel = self.GetFirstSelected()
while sel != -1:
selection.append(sel)
sel = self.GetNextSelected(sel)
self.Freeze()
item = -1
for id, st in enumerate(stuff):
@@ -128,6 +134,7 @@ class Display(wx.ListCtrl):
if oldText != newText or oldImageId != newImageId:
self.SetItem(colItem)
self.SetItemState(item, 0 , wx.LIST_STATE_FOCUSED | wx.LIST_STATE_SELECTED)
self.SetItemData(item, id)
@@ -137,6 +144,8 @@ class Display(wx.ListCtrl):
if self.GetColumnWidth(i) < 40 and col.size == wx.LIST_AUTOSIZE:
self.SetColumnWidth(i, 40)
for sel in selection:
self.Select(sel)
self.Thaw()
def getColumn(self, point):

View File

@@ -27,7 +27,7 @@ class ModuleState(ViewColumn):
def __init__(self, fittingView, params):
ViewColumn.__init__(self, fittingView)
self.resizable = False
self.size = 16
self.size = 20
self.stateNameMap = {}
for state in State.__dict__:
if state[0:2] == "__":