gui.py 文件源码

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

项目:bp5000 作者: isaiahr 项目源码 文件源码
def load_event(self, e):
        dia = wx.FileDialog(self, "Load Bracket",
                            "", "", "bp5000 bracket|*.bp5", wx.FD_OPEN)
        if dia.ShowModal() == wx.ID_CANCEL:
            return
        brs = bracketio.read_bracket(dia.GetPath())
        if isinstance(brs, str):
            w = wx.MessageDialog(self, brs, "Error", wx.ICON_ERROR)
            w.ShowModal()
            w.Destroy()
            return
        name = dia.GetFilename().replace(".bp5", "")
        pg = ManagementPage(self.nb, name, len(brs), brs)
        self.nb.InsertPage(0, pg, name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号