]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/Main.py
browsedb.cpp browsedb.h dbbrowse.cpp dbbrowse.h dbbrowse.rc
[wxWidgets.git] / utils / wxPython / demo / Main.py
index fea3339ceb8cffc59e0eab2b525628907f8d869c..e82eee115c8a9934cc63162da2f770e997453708 100644 (file)
@@ -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()