Revert "Fix: ticket #234"

This reverts commit 97253b4ac4.
This commit is contained in:
HomeWorld
2010-10-29 19:35:24 +03:00
parent fe0978e191
commit 7ca511839f
3 changed files with 7 additions and 7 deletions

2
eos

Submodule eos updated: fc317f1ba6...d22af0654d

View File

@@ -118,7 +118,7 @@ class Display(wx.ListCtrl):
selection.append(sel)
sel = self.GetNextSelected(sel)
# self.Freeze()
self.Freeze()
item = -1
for id, st in enumerate(stuff):
item = self.GetNextItem(item)
@@ -146,8 +146,9 @@ class Display(wx.ListCtrl):
for i, col in enumerate(self.activeColumns):
if not col.resized:
if col.size == wx.LIST_AUTOSIZE:
self.SetColumnWidth(i, wx.LIST_AUTOSIZE_USEHEADER)
headerWidth = self.GetColumnWidth(i)
self.SetColumnWidth(i, wx.LIST_AUTOSIZE)
headerWidth = 24
baseWidth = self.GetColumnWidth(i)
if baseWidth < headerWidth:
self.SetColumnWidth(i, headerWidth)
@@ -156,7 +157,7 @@ class Display(wx.ListCtrl):
for sel in selection:
self.Select(sel)
# self.Thaw()
self.Thaw()
def update(self, stuff):
self.populate(stuff)

View File

@@ -857,9 +857,8 @@ class ShipItem(wx.Window):
self.tcFitName.Show(False)
if self.highlighted == 1:
self.editWasShown = 1
self.newToggleBmp = self.newBmp
self.Refresh()
self.newToggleBmp = self.newBmp
self.Refresh()
def editCheckEsc(self, event):
if event.GetKeyCode() == wx.WXK_ESCAPE: