X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c731eb47101d4656e5b736ce8e377830911bbe1d..032b1ef1985eacbf5fe8442ccf55d43e72d4fa9e:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 05b92777aa..99b84e6406 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -34,6 +34,7 @@ _treeList = [ 'ScrolledPanel', 'wxMenu', 'wxIEHtmlWin', + 'wxKeyEvents', ]), # managed windows == things with a caption you can close @@ -116,15 +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 @@ -146,6 +147,7 @@ _treeList = [ 'Threads', 'wxProcess', 'wxTimer', + 'wxKeyEvents', ]), # Clipboard and DnD @@ -186,7 +188,7 @@ _treeList = [ 'wxPlotCanvas', ]), - # pyTree, hangman, ... in the samples dir + ('Check out the samples dir too', [ ]), @@ -209,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): @@ -300,8 +306,8 @@ class wxPythonDemo(wxFrame): self.treeMap = {} self.tree = wxTreeCtrl(splitter, tID, style=wxTR_HAS_BUTTONS | - wxTR_EDIT_LABELS | - wxTR_HAS_VARIABLE_ROW_HEIGHT) + wxTR_HAS_VARIABLE_ROW_HEIGHT + ) #self.tree.SetBackgroundColour(wxNamedColour("Pink")) root = self.tree.AddRoot("wxPython Overview") @@ -545,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) ))