def __init__(self, title, imageFileName): bmp = wx.Bitmap(imageFileName) self.wxId = wx.NewId() wiz.Wizard.__init__(self, ui.getMainPanel(), self.wxId, title, bmp) self.SetBorder(0) self.pageReaction = None # List of all the WizardPage objects associated with this # wizard. This list does NOT define the order of the pages, # just that they're owned by this wizard. self.ownedPages = [] wiz.EVT_WIZARD_PAGE_CHANGED(ui.getMainPanel(), self.wxId, self.onPageChange)
def createDialog(id, alignment=1, size=None, resizable=True): """Create an empty modal dialog box. @param id Identifier of the dialog area. The title of the dialog is the translation of this identifier. @return A widgets.DialogArea object. """ dialog = AreaDialog(ui.getMainPanel(), -1, id, size, alignment, resizable) return dialog