X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70a357c256c261f5a623af20ef72b8a3dbf159a4..c31c771b2d9fff41ff774bbc4515c36f3692dbe0:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index ffdb8be6d9..d7fc3a4fd3 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -209,6 +209,10 @@ class MyLog(wxPyLog): self.tc.AppendText(message + '\n') +class MyTP(wxPyTipProvider): + def GetTip(self): + return "This is my tip" + #--------------------------------------------------------------------------- def opj(path): @@ -545,6 +549,7 @@ class wxPythonDemo(wxFrame): showTip, index = (1, 0) if showTip: tp = wxCreateFileTipProvider(opj("data/tips.txt"), index) + ##tp = MyTP(0) showTip = wxShowTip(self, tp) index = tp.GetCurrentTip() open(opj("data/showTips"), "w").write(str( (showTip, index) ))