made test window for Dialog and Wizard a child of g.frame
for consistency (probably not important) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -908,7 +908,7 @@ class XML_Tree(wx.TreeCtrl):
|
|||||||
testWin.SetClientSize(testWin.GetBestSize())
|
testWin.SetClientSize(testWin.GetBestSize())
|
||||||
testWin.Show(True)
|
testWin.Show(True)
|
||||||
elif xxx.__class__ == xxxDialog:
|
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.panel = testWin
|
||||||
testWin.Layout()
|
testWin.Layout()
|
||||||
testWin.SetPosition(pos)
|
testWin.SetPosition(pos)
|
||||||
@@ -918,7 +918,7 @@ class XML_Tree(wx.TreeCtrl):
|
|||||||
wx.EVT_BUTTON(testWin, wx.ID_CANCEL, self.OnCloseTestWin)
|
wx.EVT_BUTTON(testWin, wx.ID_CANCEL, self.OnCloseTestWin)
|
||||||
elif xxx.__class__ == xxxWizard:
|
elif xxx.__class__ == xxxWizard:
|
||||||
wiz = wx.wizard.PreWizard()
|
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)
|
# Find first page (don't know better way)
|
||||||
firstPage = None
|
firstPage = None
|
||||||
for w in wiz.GetChildren():
|
for w in wiz.GetChildren():
|
||||||
|
Reference in New Issue
Block a user