+ elif xxx.__class__ == xxxWizard:
+ wiz = wxPreWizard()
+ res.LoadOnObject(wiz, None, STD_NAME, 'wxWizard')
+ # Find first page (don't know better way)
+ firstPage = None
+ for w in wiz.GetChildren():
+ if isinstance(w, wxWizardPage):
+ firstPage = w
+ break
+ if not firstPage:
+ wxLogError('Wizard is empty')
+ else:
+ # Wizard should be modal
+ self.SetItemBold(item)
+ wiz.RunWizard(w)
+ self.SetItemBold(item, False)
+ wiz.Destroy()
+ elif xxx.__class__ in [xxxWizardPage, xxxWizardPageSimple]:
+ # Create new frame
+ if not testWin:
+ testWin = g.testWin = wxFrame(g.frame, -1, 'Wizard page: ' + name,
+ pos=pos, name=STD_NAME)
+ testWin.panel = wxPrePanel()
+ res.LoadOnObject(testWin.panel, testWin, STD_NAME, 'wxPanel')
+ testWin.SetClientSize(testWin.GetBestSize())
+ testWin.Show(True)