__init__.py 文件源码

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

项目:Cognitive-Face-Python 作者: Microsoft 项目源码 文件源码
def __init__(self, parent):
        super(MyFrame, self).__init__(parent, title=TITLE, size=(1280, 768))

        icon_path = 'Assets/Microsoft-logo_rgb_c-gray.png'
        self.SetIcon(wx.Icon(icon_path))

        sizer = wx.BoxSizer(wx.VERTICAL)

        self.title = MyTitle(self)
        sizer.Add(self.title, flag=wx.EXPAND)

        self.book = MyLabelBook(self)
        sizer.Add(self.book, 1, flag=wx.EXPAND)

        status_text = (
            'Microsoft will receive the images you upload and may use them to '
            'improve Face API and related services. By submitting an image, '
            'you confirm you have consent from everyone in it.'
        )
        self.status = wx.StatusBar(self)
        self.status.SetStatusText(status_text)
        sizer.Add(self.status, flag=wx.EXPAND)

        self.SetSizer(sizer)
        self.Layout()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号