Block the OnEraseBackground method from redrawing anything to reduce flicker (hopefully)

This commit is contained in:
cncfanatics
2010-09-03 22:57:11 +02:00
parent f0cc5a0afd
commit 41909ae9de
2 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ class DroneView(wx.ListCtrl):
self.imageListBase = self.imageList.ImageCount
def OnEraseBackGround(self, event):
#Prevent flicker by not letting the parent's method get called.
pass
def addColumn(self, i, col):
self.activeColumns.append(col)
info = wx.ListItem()

View File

@@ -77,6 +77,10 @@ class FittingView(wx.ListCtrl):
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
def OnEraseBackGround(self, event):
#Prevent flicker by not letting the parent's method get called.
pass
def addColumn(self, i, col):
self.activeColumns.append(col)
info = wx.ListItem()