X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3115ef3e56082b961af85a06955b50ddf0c5738a..830efc9b0cb87eae22d4435af7858175017522ab:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index e91c7cb8e3..d7fc3a4fd3 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -33,6 +33,7 @@ _treeList = [ 'wxArtProvider', 'ScrolledPanel', 'wxMenu', + 'wxIEHtmlWin', ]), # managed windows == things with a caption you can close @@ -117,12 +118,13 @@ _treeList = [ 'wxEditor', 'wxFloatBar', 'wxHtmlWindow', + 'wxIEHtmlWin', 'wxLEDNumberCtrl', 'wxMimeTypesManager', 'wxMVCTree', + 'wxRightTextCtrl', 'wxStyledTextCtrl_1', 'wxStyledTextCtrl_2', - 'wxRightTextCtrl', ]), # How to lay out the controls in a frame/dialog @@ -184,7 +186,7 @@ _treeList = [ 'wxPlotCanvas', ]), - # pyTree, hangman, ... in the samples dir + ('Check out the samples dir too', [ ]), @@ -207,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): @@ -543,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) ))