X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7e7242718abab356a303606612be6e34234ea59..294d195c3cfd9b39b8e1855e9a89dba86bef0082:/utils/wxPython/demo/Main.py diff --git a/utils/wxPython/demo/Main.py b/utils/wxPython/demo/Main.py index c9d1c047c9..b94fd77952 100644 --- a/utils/wxPython/demo/Main.py +++ b/utils/wxPython/demo/Main.py @@ -21,9 +21,7 @@ _useSplitter = true _useNestedSplitter = true _treeList = [ - ('New since last release', ['wxMVCTree', 'wxVTKRenderWindow', - 'FileBrowseButton', 'GenericButtons', - 'wxMask', 'wxEditor']), + ('New since last release', []), ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']), @@ -275,11 +273,8 @@ class wxPythonDemo(wxFrame): self.window = module.runTest(self, self.nb, self) if self.window: self.nb.AddPage(self.window, 'Demo') - #self.nb.ResizeChildren() + wxYield() self.nb.SetSelection(2) - #self.nb.ResizeChildren() - #if self.window.GetAutoLayout(): - # self.window.Layout() else: self.ovr.Clear() @@ -383,6 +378,11 @@ class MyApp(wxApp): #--------------------------------------------------------------------------- def main(): + try: + demoPath = os.path.split(__file__)[0] + os.chdir(demoPath) + except: + pass app = MyApp(0) app.MainLoop()