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)
评论列表
文章目录