formatframe.py 文件源码

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

项目:GRIPy 作者: giruenf 项目源码 文件源码
def getPanelBottomButtons(self):
        panel = wx.Panel(self)
        sizer = wx.BoxSizer(wx.HORIZONTAL)

        b1 = wx.Button(panel, -1, "OK")
        sizer.Add(b1, 0, wx.ALIGN_RIGHT, border=5)

        b2 = wx.Button(panel, -1, "Apply")
        sizer.Add(b2, 0, wx.ALIGN_RIGHT, border=5)

        b3 = wx.Button(panel, -1, "Cancel")
        sizer.Add(b3, 0, wx.LEFT|wx.RIGHT, border=5)

        b1.Bind(wx.EVT_BUTTON, self._OnButtonOK)      
        b2.Bind(wx.EVT_BUTTON, self._OnButtonApply)
        b3.Bind(wx.EVT_BUTTON, self._OnButtonCancel)

        panel.SetSizer(sizer)
        return panel
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号