demo_logon.py 文件源码

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

项目:wxWize 作者: AndersMunch 项目源码 文件源码
def __init__(self, parent):
        with iz.Dialog(init=self, title=u"Logon", orient=wx.VERTICAL, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER):
            with iz.GridBagSizer(orient=wx.HORIZONTAL, proportion=1) as gb:
                iz.StaticText(u"Username", border=10)
                self._name = iz.TextCtrl(border=10, proportion=1, flag=wx.EXPAND).wx
                iz.StaticText(u"Password", x=0, border=10)
                self._pass = iz.TextCtrl(style=wx.TE_PASSWORD, border=10, proportion=1, flag=wx.EXPAND).wx
            gb.AddGrowableCol(1)
            with iz.StdDialogButtonSizer():
                okbut = iz.Button(u"OK", id=wx.ID_OK).wx
                iz.Button(u"Cancel", id=wx.ID_CANCEL)
                insp = iz.Button(u"Help", id=wx.ID_HELP,border=10, EVT_BUTTON=InspectionTool().Show).wx
        okbut.SetDefault()
        self.Fit()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号