def __customPageSetup(self): self.drawData = DrawData(self) #Is all the time duplex, because duplex is handled internally while drawing to the dc self.printData.SetDuplex(wx.DUPLEX_SIMPLEX) #Get from template system pageData = self.drawData.getPageData(1) orientation = self.drawData.getOrientation(pageData) self.printData.SetOrientation(orientation) size = self.drawData.getPaperSize(pageData) self.printData.SetPaperSize((100, 100))
def __init__(self, parent, *args, **kwargs): wx.Printout.__init__(self, *args, **kwargs) self.drawData = DrawData(parent)