Background erase of debug variable panel was disabled for some reason, and it not anymore compatible with EVT_PAINT based refresh. It was leaving traces behind when removing traced variable. Fixed.
authorEdouard Tisserant
Thu, 11 Apr 2019 13:45:27 +0200
changeset 2593 62c5c3589769
parent 2592 1c34bd8c5077
child 2594 f1e182818434
Background erase of debug variable panel was disabled for some reason, and it not anymore compatible with EVT_PAINT based refresh. It was leaving traces behind when removing traced variable. Fixed.
controls/DebugVariablePanel/DebugVariablePanel.py
--- a/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Apr 11 13:41:52 2019 +0200
+++ b/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Apr 11 13:45:27 2019 +0200
@@ -279,7 +279,6 @@
         self.GraphicsWindow = wx.ScrolledWindow(self, style=wx.HSCROLL | wx.VSCROLL)
         self.GraphicsWindow.SetBackgroundColour(wx.WHITE)
         self.GraphicsWindow.SetDropTarget(DebugVariableDropTarget(self))
-        self.GraphicsWindow.Bind(wx.EVT_ERASE_BACKGROUND, self.OnGraphicsWindowEraseBackground)
         self.GraphicsWindow.Bind(wx.EVT_PAINT, self.OnGraphicsWindowPaint)
         self.GraphicsWindow.Bind(wx.EVT_SIZE, self.OnGraphicsWindowResize)
         self.GraphicsWindow.Bind(wx.EVT_MOUSEWHEEL, self.OnGraphicsWindowMouseWheel)
@@ -927,9 +926,6 @@
                                           vheight // SCROLLBAR_UNIT,
                                           posx, posy)
 
-    def OnGraphicsWindowEraseBackground(self, event):
-        pass
-
     def OnGraphicsWindowPaint(self, event):
         """EVT_PAINT handler"""