def __init__(self, frame): "Prepares the Printing object. Note: change current_y for 1, 1.5, 2 spacing for lines." Printout.__init__(self) self.printer_config = PrintData() self.printer_config.SetPaperId(PAPER_LETTER) self.frame = frame self.doc_text = '' self.doc_name = '' self.current_y = 15 #y should be either (15, 22, 30) if self.current_y == 15: self.num_lines_per_page = 50 elif self.current_y == 22: self.num_lines_per_page = 35 else: self.num_lines_per_page = 25
def __init__(self, frame): "Prepares the Printing object. Note: change current_y for 1, 1.5, 2 spacing for lines." Printout.__init__(self) self.printer_config = PrintData() self.printer_config.SetPaperId(PAPER_LETTER) self.frame = frame self.doc_text = '' self.doc_name = '' self.current_y = 15 #y should be either (15, 22, 30) if self.current_y == 15: self.num_lines_per_page = 1 elif self.current_y == 22: self.num_lines_per_page = 35 else: self.num_lines_per_page = 25
def __init__(self, parent): Printout.__init__(self) self.printer = PrintData() self.printer.SetPaperId(PAPER_LETTER) self.parent = parent self.y_coord = 15 if self.y_coord == 15: self.num_lines_per_page = 50 elif self.y_coord == 22: self.num_lines_per_page = 35 else: self.num_lines_per_page = 25
def OnPreparePrinting(self): # "Do any logic to prepare for printing here." Printout.OnPreparePrinting(self)
def OnEndPrinting(self): # "Do any post printing logic here." Printout.OnEndPrinting(self)
def OnBeginPrinting(self): # "Do printing initialization logic here." Printout.OnBeginPrinting(self)
def OnEndDocument(self): # "Do any end of document logic here." Printout.OnEndDocument(self)
def OnBeginDocument(self, start, end): # "Do any end of document logic here." Printout.OnBeginDocument(self, start, end)