controllers.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:gooderp_addons 作者: osbzr 项目源码 文件源码
def style_data(self):
        style = xlwt.easyxf(
            'font: bold on,height 300;align: wrap on,vert centre, horiz center;')
        colour_style = xlwt.easyxf('align: wrap yes,vert centre, horiz center;pattern: pattern solid, \
                                   fore-colour light_orange;border: left thin,right thin,top thin,bottom thin')

        base_style = xlwt.easyxf('align: wrap yes,vert centre, horiz left; pattern: pattern solid, \
                                     fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin')
        float_style = xlwt.easyxf('align: wrap yes,vert centre, horiz right ; pattern: pattern solid,\
                                      fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin')
        date_style = xlwt.easyxf('align: wrap yes; pattern: pattern solid,fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin\
                                     ', num_format_str='YYYY-MM-DD')
        datetime_style = xlwt.easyxf('align: wrap yes; pattern: pattern solid, fore-colour light_yellow;\
                                         protection:formula_hidden yes;border: left thin,right thin,top thin,bottom thin',
                                     num_format_str='YYYY-MM-DD HH:mm:SS')
        return style, colour_style, base_style, float_style, date_style, datetime_style
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号