X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..9d7dfdff8c1ece0250ff61658b8b973452092ced:/wxPython/demo/MDIWindows.py?ds=sidebyside diff --git a/wxPython/demo/MDIWindows.py b/wxPython/demo/MDIWindows.py index 8e47f24c02..521c14cc66 100644 --- a/wxPython/demo/MDIWindows.py +++ b/wxPython/demo/MDIWindows.py @@ -1,8 +1,7 @@ import wx - -import MDIDemo -import MDISashDemo +import os +import sys #---------------------------------------------------------------------- @@ -25,14 +24,14 @@ class TestPanel(wx.Panel): self.SetSizer(box) + # These are spawned as new processes because on Mac there can be + # some problems related to having regular frames and MDI frames in + # the same app. def ShowMDIDemo(self, evt): - frame = MDIDemo.MyParentFrame() - frame.Show() + os.spawnl(os.P_NOWAIT, sys.executable, sys.executable, "MDIDemo.py") def ShowMDISashDemo(self, evt): - frame = MDISashDemo.MyParentFrame() - frame.Show() - + os.spawnl(os.P_NOWAIT, sys.executable, sys.executable, "MDISashDemo.py") #----------------------------------------------------------------------