> # Excel cell style definitions
> # The styles
> wbCellStyleHeader = XFStyle()
> wbCellStyleBody = XFStyle()
> # The fonts for the styles
> wbCellFontHeader = Font()
> wbCellFontBody = Font()
> wbCellFontHeader.name = 'Calibri'
> wbCellFontHeader.bold = True
> wbCellFontBody.name = 'Calibri'
> # The borders for the styles
> wbBordersMedium = Borders()
> wbBordersMedium.left = 2
> wbBordersMedium.right = 2
> wbBordersMedium.top = 2
> wbBordersMedium.bottom = 2
> wbBGPattern = Pattern()
> wbBGPattern.pattern = Pattern.SOLID_PATTERN
> wbBGPattern.pattern_fore_color = 3
> # Define the styles
> wbCellStyleHeader.font = wbCellFontHeader
> wbCellStyleHeader.borders = wbBordersMedium
> wbCellStyleHeader.pattern = wbBGPattern
> wbCellStyleBody.font = wbCellFontBody
> wbCellStyleBody.borders = wbBordersMedium