force redraw only through EVT_PAINT event and use wxPaintDC, as described in wx documentation
--- a/controls/DebugVariablePanel/DebugVariableTextViewer.py Thu Apr 11 11:26:47 2019 +0200
+++ b/controls/DebugVariablePanel/DebugVariableTextViewer.py Thu Apr 11 13:41:52 2019 +0200
@@ -192,10 +192,11 @@
"""
Redraw content displayed by Viewer
"""
+
# Create buffered DC for drawing in panel
width, height = self.GetSize()
bitmap = wx.EmptyBitmap(width, height)
- dc = wx.BufferedDC(wx.ClientDC(self), bitmap)
+ dc = wx.BufferedDC(wx.PaintDC(self), bitmap)
dc.Clear()
# Get Graphics Context for DC, for anti-aliased and transparent