Prevent the whole background from being redrawn for out trees. MIGHT fix flicker issues

This commit is contained in:
cncfanatics
2010-08-23 20:09:08 +02:00
parent a696b72d68
commit 64e25ac58f
2 changed files with 13 additions and 1 deletions

View File

@@ -280,6 +280,10 @@ class ShipView(wx.TreeCtrl):
else:
return cmp(self.GetItemText(treeId1), self.GetItemText(treeId2))
def OnEraseBackGround(self, event):
#Prevent flicker by not letting the parent's method get called.
pass
class ShipMenu(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)