From: Robin Dunn Date: Sun, 21 Jul 2002 02:57:38 +0000 (+0000) Subject: Test for wxPyTipProvider X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/861a0196f9ee8082080e27c9ce78e1b3daac3cf5 Test for wxPyTipProvider git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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) ))