Remove EVT_ERASE_BACKGROUND events - pretty sure these were there for older versions of wx where the background wasn't erased properly

This commit is contained in:
Ryan Holmes
2017-06-14 01:02:27 -04:00
parent bec26d5d05
commit 8c5c7fba29
10 changed files with 0 additions and 79 deletions

View File

@@ -18,7 +18,6 @@ class LoadAnimation(wx.Window):
self.bars = 10
self.padding = 2
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
self.Bind(wx.EVT_TIMER, self.OnTimer)
self.Bind(wx.EVT_PAINT, self.OnPaint)
@@ -47,9 +46,6 @@ class LoadAnimation(wx.Window):
self.Refresh()
def OnEraseBackground(self, event):
pass
def OnPaint(self, event):
rect = self.GetClientRect()
dc = wx.BufferedPaintDC(self)