IDEFrame.py
changeset 2342 4ec6d6cd23ca
parent 2302 69fefac5760e
child 2431 6923074540dd
equal deleted inserted replaced
2341:210cddfa16cf 2342:4ec6d6cd23ca
  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