equal
deleted
inserted
replaced
2626 dc.SetResolution(720) |
2626 dc.SetResolution(720) |
2627 super(GraphicPrintout, self).OnBeginDocument(startPage, endPage) |
2627 super(GraphicPrintout, self).OnBeginDocument(startPage, endPage) |
2628 |
2628 |
2629 def OnPrintPage(self, page): |
2629 def OnPrintPage(self, page): |
2630 dc = self.GetDC() |
2630 dc = self.GetDC() |
|
2631 dc.SetBackground(wx.WHITE_BRUSH) |
|
2632 dc.Clear() |
2631 dc.SetUserScale(1.0, 1.0) |
2633 dc.SetUserScale(1.0, 1.0) |
2632 dc.SetDeviceOrigin(0, 0) |
2634 dc.SetDeviceOrigin(0, 0) |
2633 dc.printing = not self.Preview |
2635 dc.printing = not self.Preview |
2634 |
2636 |
2635 # Get the size of the DC in pixels |
2637 # Get the size of the DC in pixels |