X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fb56e0cbc2df05b8ef57cd513c0278729439ab3..57a1fd73042accb25f48366ef8b51c974dfa2c04:/utils/wxPython/demo/Main.py?ds=sidebyside diff --git a/utils/wxPython/demo/Main.py b/utils/wxPython/demo/Main.py index f5292d51f0..aa3d1776da 100644 --- a/utils/wxPython/demo/Main.py +++ b/utils/wxPython/demo/Main.py @@ -21,7 +21,8 @@ _useSplitter = true _useNestedSplitter = true _treeList = [ - ('New since last release', ['wxMVCTree', 'wxVTKRenderWindow']), + ('New since last release', ['wxMVCTree', 'wxVTKRenderWindow', + 'FileBrowseButton']), ('Managed Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame']), @@ -49,7 +50,8 @@ _treeList = [ ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog', 'wxMultipleChoiceDialog', 'wxPlotCanvas', 'wxFloatBar', - 'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow']), + 'PyShell', 'wxCalendar', 'wxMVCTree', 'wxVTKRenderWindow', + 'FileBrowseButton',]), ('Cool Contribs', ['pyTree', 'hangman', 'SlashDot', 'XMLtreeview']), @@ -61,6 +63,8 @@ class wxPythonDemo(wxFrame): def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) + self.cwd = os.getcwd() + if wxPlatform == '__WXMSW__': self.icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO) self.SetIcon(self.icon) @@ -238,6 +242,7 @@ class wxPythonDemo(wxFrame): #--------------------------------------------- def RunDemo(self, itemText): + os.chdir(self.cwd) if self.nb.GetPageCount() == 3: if self.nb.GetSelection() == 2: self.nb.SetSelection(0)