Example #1
0
 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
Example #2
0
 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
Example #3
0
File: test.py Project: xiphffff/LLM
    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
Example #4
0
 def OnPreparePrinting(self):
     #    "Do any logic to prepare for printing here."
     Printout.OnPreparePrinting(self)
Example #5
0
 def OnEndPrinting(self):
     #    "Do any post printing logic here."
     Printout.OnEndPrinting(self)
Example #6
0
 def OnBeginPrinting(self):
     #    "Do printing initialization logic here."
     Printout.OnBeginPrinting(self)
Example #7
0
 def OnEndDocument(self):
     #    "Do any end of document logic here."
     Printout.OnEndDocument(self)
Example #8
0
 def OnBeginDocument(self, start, end):
     #    "Do any end of document logic here."
     Printout.OnBeginDocument(self, start, end)