X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e1f6ec48a789a506abd03e8ea1c9fe82122251b..53663be8a5ea8e1c6f178839209b67e8228e4642:/wxPython/src/mac/wizard.py diff --git a/wxPython/src/mac/wizard.py b/wxPython/src/mac/wizard.py index 959bc00345..845cdb939f 100644 --- a/wxPython/src/mac/wizard.py +++ b/wxPython/src/mac/wizard.py @@ -32,6 +32,9 @@ def EVT_WIZARD_CANCEL(win, id, func): def EVT_WIZARD_HELP(win, id, func): win.Connect(id, -1, wxEVT_WIZARD_HELP, func) +def EVT_WIZARD_FINISHED(win, id, func): + win.Connect(id, -1, wxEVT_WIZARD_FINISHED, func) + class wxWizardEventPtr(wxNotifyEventPtr): def __init__(self,this): @@ -42,7 +45,6 @@ class wxWizardEventPtr(wxNotifyEventPtr): return val def GetPage(self, *_args, **_kwargs): val = apply(wizardc.wxWizardEvent_GetPage,(self,) + _args, _kwargs) - if val: val = wxWizardPagePtr(val) return val def __repr__(self): return "" % (self.this,) @@ -61,16 +63,11 @@ class wxWizardPagePtr(wxPanelPtr): def Create(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPage_Create,(self,) + _args, _kwargs) return val - def Init(self, *_args, **_kwargs): - val = apply(wizardc.wxWizardPage_Init,(self,) + _args, _kwargs) - return val def GetPrev(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPage_GetPrev,(self,) + _args, _kwargs) - if val: val = wxWizardPagePtr(val) return val def GetNext(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPage_GetNext,(self,) + _args, _kwargs) - if val: val = wxWizardPagePtr(val) return val def GetBitmap(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPage_GetBitmap,(self,) + _args, _kwargs) @@ -177,9 +174,6 @@ class wxWizardPageSimplePtr(wxWizardPagePtr): def Create(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPageSimple_Create,(self,) + _args, _kwargs) return val - def Init(self, *_args, **_kwargs): - val = apply(wizardc.wxWizardPageSimple_Init,(self,) + _args, _kwargs) - return val def SetPrev(self, *_args, **_kwargs): val = apply(wizardc.wxWizardPageSimple_SetPrev,(self,) + _args, _kwargs) return val @@ -218,7 +212,6 @@ class wxWizardPtr(wxDialogPtr): return val def GetCurrentPage(self, *_args, **_kwargs): val = apply(wizardc.wxWizard_GetCurrentPage,(self,) + _args, _kwargs) - if val: val = wxWizardPagePtr(val) return val def SetPageSize(self, *_args, **_kwargs): val = apply(wizardc.wxWizard_SetPageSize,(self,) + _args, _kwargs) @@ -236,6 +229,12 @@ class wxWizardPtr(wxDialogPtr): def ShowPage(self, *_args, **_kwargs): val = apply(wizardc.wxWizard_ShowPage,(self,) + _args, _kwargs) return val + def HasNextPage(self, *_args, **_kwargs): + val = apply(wizardc.wxWizard_HasNextPage,(self,) + _args, _kwargs) + return val + def HasPrevPage(self, *_args, **_kwargs): + val = apply(wizardc.wxWizard_HasPrevPage,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxWizard(wxWizardPtr): @@ -268,6 +267,7 @@ wxEVT_WIZARD_PAGE_CHANGED = wizardc.wxEVT_WIZARD_PAGE_CHANGED wxEVT_WIZARD_PAGE_CHANGING = wizardc.wxEVT_WIZARD_PAGE_CHANGING wxEVT_WIZARD_CANCEL = wizardc.wxEVT_WIZARD_CANCEL wxEVT_WIZARD_HELP = wizardc.wxEVT_WIZARD_HELP +wxEVT_WIZARD_FINISHED = wizardc.wxEVT_WIZARD_FINISHED #-------------- USER INCLUDE ----------------------- @@ -275,3 +275,7 @@ wxEVT_WIZARD_HELP = wizardc.wxEVT_WIZARD_HELP # Stuff these names into the wx namespace so wxPyConstructObject can find them import wx wx.wxWizardEventPtr = wxWizardEventPtr +wx.wxWizardPagePtr = wxWizardPagePtr +wx.wxPyWizardPagePtr = wxPyWizardPagePtr +wx.wxWizardPageSimplePtr = wxWizardPageSimplePtr +wx.wxWizardPtr = wxWizardPtr