equal
deleted
inserted
replaced
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) |