made test window for Dialog and Wizard a child of g.frame
authorRoman Rolinsky <rolinsky@femagsoft.com>
Sun, 11 Mar 2007 01:22:00 +0000 (01:22 +0000)
committerRoman Rolinsky <rolinsky@femagsoft.com>
Sun, 11 Mar 2007 01:22:00 +0000 (01:22 +0000)
for consistency (probably not important)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/tree.py

index 3c5ddf95fbc4a718402d1e1469eba2cf31fb92d9..9ea2fb3924ee6f0c4ef7b56623dc35b5212d0c99 100644 (file)
@@ -908,7 +908,7 @@ class XML_Tree(wx.TreeCtrl):
                 testWin.SetClientSize(testWin.GetBestSize())
                 testWin.Show(True)
             elif xxx.__class__ == xxxDialog:
-                testWin = g.testWin = res.LoadDialog(None, STD_NAME)
+                testWin = g.testWin = res.LoadDialog(g.frame, STD_NAME)
                 testWin.panel = testWin
                 testWin.Layout()
                 testWin.SetPosition(pos)
@@ -918,7 +918,7 @@ class XML_Tree(wx.TreeCtrl):
                 wx.EVT_BUTTON(testWin, wx.ID_CANCEL, self.OnCloseTestWin)
             elif xxx.__class__ == xxxWizard:
                 wiz = wx.wizard.PreWizard()
-                res.LoadOnObject(wiz, None, STD_NAME, 'wxWizard')
+                res.LoadOnObject(wiz, g.frame, STD_NAME, 'wxWizard')
                 # Find first page (don't know better way)
                 firstPage = None
                 for w in wiz.GetChildren():