gui.py 文件源码

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

项目:bp5000 作者: isaiahr 项目源码 文件源码
def place(self, e):
        if not hasattr(self, "brackets"):
            errortext = "Make bracket before doing that"
            w = wx.MessageDialog(self.parent, errortext,
                                 "Error", wx.ICON_ERROR)
            w.ShowModal()
            w.Destroy()
            return
        placel = bracketfuncs.placing(self.brackets)
        d = wx.Dialog(None)
        d.SetTitle("Results")
        a = wx.TextCtrl(d, style=wx.TE_MULTILINE)
        a.SetEditable(False)
        ptxt = ""
        for p in placel:
            if not p.isbye():
                ptxt += str(placel[p]) + ". " + p.tag + "\n"
        a.SetValue(ptxt)
        d.SetSize((250, 320))
        d.Show(True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号