loadpyui.py 文件源码

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

项目:pythonista-scripts 作者: khilnani 项目源码 文件源码
def parse_alignment(a):
    '''handle alignment attribute.  TODO: handle all valid types'''
    if a=='left':
        return ui.ALIGN_LEFT
    elif a=='right':
        return ui.ALIGN_RIGHT
    elif a=='center':
        return ui.ALIGN_CENTER
    else:        #fixme... handle all types. 
        print 'unhandled alignment',a
        return ui.ALIGN_LEFT
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号