controls/DebugVariablePanel/DebugVariableGraphicViewer.py
branchwxPython4
changeset 3307 eeec6e0ea269
parent 3303 0ffb41625592
child 3659 278dc1144059
equal deleted inserted replaced
3306:841fb2ee1213 3307:eeec6e0ea269
  1379 
  1379 
  1380         # Get Graphics Context for DC, for anti-aliased and transparent
  1380         # Get Graphics Context for DC, for anti-aliased and transparent
  1381         # rendering
  1381         # rendering
  1382         destGC = wx.GCDC(destDC)
  1382         destGC = wx.GCDC(destDC)
  1383 
  1383 
  1384         destGC.BeginDrawing()
       
  1385 
       
  1386         # Get canvas size and figure bounding box in canvas
  1384         # Get canvas size and figure bounding box in canvas
  1387         width, height = self.GetSize()
  1385         width, height = self.GetSize()
  1388         bbox = self.GetAxesBoundingBox()
  1386         bbox = self.GetAxesBoundingBox()
  1389 
  1387 
  1390         # If highlight to display is resize, draw thick grey line at bottom
  1388         # If highlight to display is resize, draw thick grey line at bottom
  1407                                  bbox.width // 2, bbox.height)
  1405                                  bbox.width // 2, bbox.height)
  1408 
  1406 
  1409         # Draw other Viewer common elements
  1407         # Draw other Viewer common elements
  1410         self.DrawCommonElements(destGC, self.GetButtons())
  1408         self.DrawCommonElements(destGC, self.GetButtons())
  1411 
  1409 
  1412         destGC.EndDrawing()
       
  1413 
       
  1414         self._isDrawn = True
  1410         self._isDrawn = True
  1415         self.gui_repaint(drawDC=drawDC)
  1411         self.gui_repaint(drawDC=drawDC)