X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9b24f070c67c61d11a0032054e0a229d876f38d..c50c32efd1d57b6718743ca20ffe4bbc0ce5859c:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index e9beb449ad..b06f4da5c9 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -32,6 +32,9 @@ _treeList = [ 'wxImageFromStream', 'wxArtProvider', 'ScrolledPanel', + 'wxMenu', + 'wxIEHtmlWin', + 'wxKeyEvents', ]), # managed windows == things with a caption you can close @@ -78,6 +81,7 @@ _treeList = [ 'wxListBox', 'wxListCtrl', 'wxListCtrl_virtual', + 'wxMenu', 'wxNotebook', 'wxPopupWindow', 'wxRadioBox', @@ -113,14 +117,15 @@ _treeList = [ 'wxDynamicSashWindow', 'wxEditableListBox', 'wxEditor', - 'wxFloatBar', + #'wxFloatBar', deprecated 'wxHtmlWindow', + 'wxIEHtmlWin', 'wxLEDNumberCtrl', 'wxMimeTypesManager', - 'wxMVCTree', + #'wxMVCTree', deprecated + 'wxRightTextCtrl', 'wxStyledTextCtrl_1', 'wxStyledTextCtrl_2', - 'wxRightTextCtrl', ]), # How to lay out the controls in a frame/dialog @@ -142,6 +147,7 @@ _treeList = [ 'Threads', 'wxProcess', 'wxTimer', + 'wxKeyEvents', ]), # Clipboard and DnD @@ -182,7 +188,7 @@ _treeList = [ 'wxPlotCanvas', ]), - # pyTree, hangman, ... in the samples dir + ('Check out the samples dir too', [ ]), @@ -205,6 +211,10 @@ class MyLog(wxPyLog): self.tc.AppendText(message + '\n') +class MyTP(wxPyTipProvider): + def GetTip(self): + return "This is my tip" + #--------------------------------------------------------------------------- def opj(path): @@ -541,6 +551,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) ))