- prt.SetColAlignment(1, wxALIGN_CENTRE)
- prt.SetColBackgroundColour(0, wxNamedColour('RED'))
- prt.SetColTextColour(0, wxNamedColour('WHITE'))
- prt.SetCellColour(4, 0, wxNamedColour('LIGHT BLUE'))
- prt.SetCellColour(4, 1, wxNamedColour('LIGHT BLUE'))
- prt.SetCellColour(17, 1, wxNamedColour('LIGHT BLUE'))
-
- prt.SetColBackgroundColour(2, wxNamedColour('LIGHT BLUE'))
- prt.SetCellText(4, 2, wxNamedColour('RED'))
-
- prt.SetColTextColour(3, wxNamedColour('RED'))
- prt.label_font_colour = wxNamedColour('WHITE')
- prt.SetHeader("wxWindows Applications", colour = wxNamedColour('RED'))
-
- prt.SetHeader("Date", align=wxALIGN_RIGHT, indent = -2, colour = wxNamedColour('BLUE'))
- prt.SetFooter("Page No", colour = wxNamedColour('RED'), type ="Num")
+ prt.SetColAlignment(1, wx.ALIGN_CENTRE)
+ prt.SetColBackgroundColour(0, wx.NamedColour('RED'))
+ prt.SetColTextColour(0, wx.NamedColour('WHITE'))
+ prt.SetCellColour(4, 0, wx.NamedColour('LIGHT BLUE'))
+ prt.SetCellColour(4, 1, wx.NamedColour('LIGHT BLUE'))
+ prt.SetCellColour(17, 1, wx.NamedColour('LIGHT BLUE'))
+
+ prt.SetColBackgroundColour(2, wx.NamedColour('LIGHT BLUE'))
+ prt.SetCellText(4, 2, wx.NamedColour('RED'))
+
+ prt.SetColTextColour(3, wx.NamedColour('RED'))
+ prt.label_font_colour = wx.NamedColour('WHITE')
+ prt.SetHeader("wxWindows Applications", colour = wx.NamedColour('RED'))
+
+ prt.SetHeader("Printed: ", type = "Date & Time", align=wx.ALIGN_RIGHT, indent = -1, colour = wx.NamedColour('BLUE'))
+ prt.SetFooter("Page No", colour = wx.NamedColour('RED'), type ="Num")