X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b3d3bc44bee290fc5b34279adb60156f28689d3..c92b0f9abd8348df6c43e69e66cc428fb9aac59c:/utils/wxPython/demo/Main.py diff --git a/utils/wxPython/demo/Main.py b/utils/wxPython/demo/Main.py index 1030ed5d73..e82eee115c 100644 --- a/utils/wxPython/demo/Main.py +++ b/utils/wxPython/demo/Main.py @@ -23,7 +23,7 @@ _useNestedSplitter = true _treeList = [ ('New since last release', ['wxMVCTree', 'wxVTKRenderWindow', 'FileBrowseButton', 'GenericButtons', - 'wxMask']), + 'wxMask', 'wxEditor']), ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']), @@ -53,7 +53,7 @@ _treeList = [ ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog', 'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar', 'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow', - 'FileBrowseButton', 'GenericButtons']), + 'FileBrowseButton', 'GenericButtons', 'wxEditor']), ('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']), @@ -137,6 +137,7 @@ class wxPythonDemo(wxFrame): tID = wxNewId() self.treeMap = {} self.tree = wxTreeCtrl(splitter, tID) + #self.tree.SetBackgroundColour(wxNamedColour("Pink")) root = self.tree.AddRoot("Overview") firstChild = None for item in _treeList: @@ -382,6 +383,11 @@ class MyApp(wxApp): #--------------------------------------------------------------------------- def main(): + try: + demoPath = os.path.split(__file__)[0] + os.chdir(demoPath) + except: + pass app = MyApp(0) app.MainLoop()