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

@@ -11,7 +11,6 @@ class PFBitmapFrame(wx.Frame):
self.bitmap = bitmap
self.SetSize((bitmap.GetWidth(), bitmap.GetHeight()))
self.Bind(wx.EVT_PAINT, self.OnWindowPaint)
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnWindowEraseBk)
self.Bind(wx.EVT_TIMER, self.OnTimer)
self.timer = wx.Timer(self, wx.ID_ANY)
@@ -45,9 +44,6 @@ class PFBitmapFrame(wx.Frame):
self.direction = -1
self.timer.Start(5)
def OnWindowEraseBk(self, event):
pass
def OnWindowPaint(self, event):
rect = self.GetRect()
canvas = wx.EmptyBitmap(rect.width, rect.height)