controls/DebugVariablePanel.py
changeset 946 9343740603f5
parent 945 c1159acb0886
child 952 c1f901403a34
equal deleted inserted replaced
945:c1159acb0886 946:9343740603f5
   735             
   735             
   736         def RefreshViewer(self):
   736         def RefreshViewer(self):
   737             width, height = self.GetSize()
   737             width, height = self.GetSize()
   738             bitmap = wx.EmptyBitmap(width, height)
   738             bitmap = wx.EmptyBitmap(width, height)
   739             
   739             
   740             dc = wx.BufferedPaintDC(self, bitmap)
   740             dc = wx.BufferedDC(wx.ClientDC(self), bitmap)
   741             dc.Clear()
   741             dc.Clear()
   742             dc.BeginDrawing()
   742             dc.BeginDrawing()
   743             
   743             
   744             gc = wx.GCDC(dc)
   744             gc = wx.GCDC(dc)
   745             
   745             
  1735         if USE_MPL:
  1735         if USE_MPL:
  1736             self.RefreshCanvasPosition()
  1736             self.RefreshCanvasPosition()
  1737             
  1737             
  1738             width, height = self.GraphicsWindow.GetVirtualSize()
  1738             width, height = self.GraphicsWindow.GetVirtualSize()
  1739             bitmap = wx.EmptyBitmap(width, height)
  1739             bitmap = wx.EmptyBitmap(width, height)
  1740             dc = wx.BufferedPaintDC(self.GraphicsWindow, bitmap)
  1740             dc = wx.BufferedDC(wx.ClientDC(self.GraphicsWindow), bitmap)
  1741             dc.Clear()
  1741             dc.Clear()
  1742             dc.BeginDrawing()
  1742             dc.BeginDrawing()
  1743             if self.DraggingAxesPanel is not None:
  1743             if self.DraggingAxesPanel is not None:
  1744                 destBBox = self.DraggingAxesBoundingBox
  1744                 destBBox = self.DraggingAxesBoundingBox
  1745                 srcBBox = self.DraggingAxesPanel.GetAxesBoundingBox()
  1745                 srcBBox = self.DraggingAxesPanel.GetAxesBoundingBox()