X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72797a7da3f02b1b71949d4ea8827529a2c8c7b1..c31c771b2d9fff41ff774bbc4515c36f3692dbe0:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index f64b5e8e07..d7fc3a4fd3 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -31,6 +31,9 @@ _treeList = [ 'wxGenericDirCtrl', 'wxImageFromStream', 'wxArtProvider', + 'ScrolledPanel', + 'wxMenu', + 'wxIEHtmlWin', ]), # managed windows == things with a caption you can close @@ -66,7 +69,6 @@ _treeList = [ # core controls ('Core Windows/Controls', [ - 'VirtualListCtrl', 'wxButton', 'wxCheckBox', 'wxCheckListBox', @@ -77,6 +79,8 @@ _treeList = [ 'wxGrid', 'wxListBox', 'wxListCtrl', + 'wxListCtrl_virtual', + 'wxMenu', 'wxNotebook', 'wxPopupWindow', 'wxRadioBox', @@ -114,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 @@ -127,6 +132,7 @@ _treeList = [ 'LayoutAnchors', 'Layoutf', 'RowColSizer', + 'ScrolledPanel', 'Sizers', 'wxLayoutConstraints', 'XML_Resource', @@ -180,7 +186,7 @@ _treeList = [ 'wxPlotCanvas', ]), - # pyTree, hangman, ... in the samples dir + ('Check out the samples dir too', [ ]), @@ -203,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): @@ -356,10 +366,13 @@ class wxPythonDemo(wxFrame): # But instead of the above we want to show how to use our own wxLog class wxLog_SetActiveTarget(MyLog(self.log)) - + # for serious debugging + #wxLog_SetActiveTarget(wxLogStderr()) + #wxLog_SetTraceMask(wxTraceMessages) self.Show(true) + # add the windows to the splitter and split it. splitter2.SplitHorizontally(self.nb, self.log) splitter.SplitVertically(self.tree, splitter2) @@ -536,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) ))