X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b55cabf505902af2275a5ae796acacae7073882..bd3c6758b51fa1ba67050eb42980a95279029a34:/utils/wxPython/demo/Main.py?ds=inline diff --git a/utils/wxPython/demo/Main.py b/utils/wxPython/demo/Main.py index fea3339ceb..e82eee115c 100644 --- a/utils/wxPython/demo/Main.py +++ b/utils/wxPython/demo/Main.py @@ -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()