status.py 文件源码

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

项目:CodeReader 作者: jasonrbr 项目源码 文件源码
def MakeProgressDlgTemplate(caption, staticText = ""):
    style = (win32con.DS_MODALFRAME |
         win32con.WS_POPUP |
         win32con.WS_VISIBLE |
         win32con.WS_CAPTION |
         win32con.WS_SYSMENU |
         win32con.DS_SETFONT)
    cs = (win32con.WS_CHILD |
      win32con.WS_VISIBLE)

    w = 215
    h = 36 # With button
    h = 40

    dlg = [[caption,
        (0, 0, w, h),
        style,
        None,
        (8, "MS Sans Serif")],
       ]

    s = win32con.WS_TABSTOP | cs

    dlg.append([130, staticText, 1000, (7, 7, w-7, h-32), cs | win32con.SS_LEFT])

#    dlg.append([128,
#       "Cancel",
#       win32con.IDCANCEL,
#       (w - 60, h - 18, 50, 14), s | win32con.BS_PUSHBUTTON])

    return dlg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号