- self.ShowTip(frame)
- self.Destroy()
-
- def ShowTip(self, frame):
- try:
- showTipText = open(opj("data/showTips")).read()
- showTip, index = eval(showTipText)
- except IOError:
- showTip, index = (1, 0)
- if showTip:
- tp = wxCreateFileTipProvider(opj("data/tips.txt"), index)
- showTip = wxShowTip(frame, tp)
- index = tp.GetCurrentTip()
- open(opj("data/showTips"), "w").write(str( (showTip, index) ))
-