X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..409eab506ebe5454e10b7e49da263993e00399ce:/wxPython/src/mac/wizard.py diff --git a/wxPython/src/mac/wizard.py b/wxPython/src/mac/wizard.py index 0389bce88a..fd98bc0f72 100644 --- a/wxPython/src/mac/wizard.py +++ b/wxPython/src/mac/wizard.py @@ -19,15 +19,25 @@ EVT_WIZARD_HELP = wx.PyEventBinder( wxEVT_WIZARD_HELP, 1) EVT_WIZARD_FINISHED = wx.PyEventBinder( wxEVT_WIZARD_FINISHED, 1) class WizardEvent(core.NotifyEvent): + def __repr__(self): + return "<%s.%s; proxy of C++ wxWizardEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): + """ + __init__(wxEventType type=wxEVT_NULL, int id=-1, bool direction=True, + WizardPage page=None) -> WizardEvent + """ newobj = _wizard.new_WizardEvent(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown - def GetDirection(*args, **kwargs): return _wizard.WizardEvent_GetDirection(*args, **kwargs) - def GetPage(*args, **kwargs): return _wizard.WizardEvent_GetPage(*args, **kwargs) - def __repr__(self): - return "<%s.%s; proxy of C++ wxWizardEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def GetDirection(*args, **kwargs): + """GetDirection() -> bool""" + return _wizard.WizardEvent_GetDirection(*args, **kwargs) + + def GetPage(*args, **kwargs): + """GetPage() -> WizardPage""" + return _wizard.WizardEvent_GetPage(*args, **kwargs) + class WizardEventPtr(WizardEvent): def __init__(self, this): @@ -37,13 +47,25 @@ class WizardEventPtr(WizardEvent): _wizard.WizardEvent_swigregister(WizardEventPtr) class WizardPage(windows.Panel): - def Create(*args, **kwargs): return _wizard.WizardPage_Create(*args, **kwargs) - def GetPrev(*args, **kwargs): return _wizard.WizardPage_GetPrev(*args, **kwargs) - def GetNext(*args, **kwargs): return _wizard.WizardPage_GetNext(*args, **kwargs) - def GetBitmap(*args, **kwargs): return _wizard.WizardPage_GetBitmap(*args, **kwargs) def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<%s.%s; proxy of C++ wxWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def Create(*args, **kwargs): + """Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool""" + return _wizard.WizardPage_Create(*args, **kwargs) + + def GetPrev(*args, **kwargs): + """GetPrev() -> WizardPage""" + return _wizard.WizardPage_GetPrev(*args, **kwargs) + + def GetNext(*args, **kwargs): + """GetNext() -> WizardPage""" + return _wizard.WizardPage_GetNext(*args, **kwargs) + + def GetBitmap(*args, **kwargs): + """GetBitmap() -> Bitmap""" + return _wizard.WizardPage_GetBitmap(*args, **kwargs) + class WizardPagePtr(WizardPage): def __init__(self, this): @@ -53,34 +75,96 @@ class WizardPagePtr(WizardPage): _wizard.WizardPage_swigregister(WizardPagePtr) class PyWizardPage(WizardPage): + def __repr__(self): + return "<%s.%s; proxy of C++ wxPyWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): + """__init__(Wizard parent, Bitmap bitmap=&wxNullBitmap, String resource=&wxPyEmptyString) -> PyWizardPage""" newobj = _wizard.new_PyWizardPage(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self) - def Create(*args, **kwargs): return _wizard.PyWizardPage_Create(*args, **kwargs) - def _setCallbackInfo(*args, **kwargs): return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs) - def base_DoMoveWindow(*args, **kwargs): return _wizard.PyWizardPage_base_DoMoveWindow(*args, **kwargs) - def base_DoSetSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoSetSize(*args, **kwargs) - def base_DoSetClientSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoSetClientSize(*args, **kwargs) - def base_DoSetVirtualSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoSetVirtualSize(*args, **kwargs) - def base_DoGetSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoGetSize(*args, **kwargs) - def base_DoGetClientSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoGetClientSize(*args, **kwargs) - def base_DoGetPosition(*args, **kwargs): return _wizard.PyWizardPage_base_DoGetPosition(*args, **kwargs) - def base_DoGetVirtualSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoGetVirtualSize(*args, **kwargs) - def base_DoGetBestSize(*args, **kwargs): return _wizard.PyWizardPage_base_DoGetBestSize(*args, **kwargs) - def base_InitDialog(*args, **kwargs): return _wizard.PyWizardPage_base_InitDialog(*args, **kwargs) - def base_TransferDataToWindow(*args, **kwargs): return _wizard.PyWizardPage_base_TransferDataToWindow(*args, **kwargs) - def base_TransferDataFromWindow(*args, **kwargs): return _wizard.PyWizardPage_base_TransferDataFromWindow(*args, **kwargs) - def base_Validate(*args, **kwargs): return _wizard.PyWizardPage_base_Validate(*args, **kwargs) - def base_AcceptsFocus(*args, **kwargs): return _wizard.PyWizardPage_base_AcceptsFocus(*args, **kwargs) - def base_AcceptsFocusFromKeyboard(*args, **kwargs): return _wizard.PyWizardPage_base_AcceptsFocusFromKeyboard(*args, **kwargs) - def base_GetMaxSize(*args, **kwargs): return _wizard.PyWizardPage_base_GetMaxSize(*args, **kwargs) - def base_AddChild(*args, **kwargs): return _wizard.PyWizardPage_base_AddChild(*args, **kwargs) - def base_RemoveChild(*args, **kwargs): return _wizard.PyWizardPage_base_RemoveChild(*args, **kwargs) - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + + def Create(*args, **kwargs): + """Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool""" + return _wizard.PyWizardPage_Create(*args, **kwargs) + + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs) + + def base_DoMoveWindow(*args, **kwargs): + """base_DoMoveWindow(int x, int y, int width, int height)""" + return _wizard.PyWizardPage_base_DoMoveWindow(*args, **kwargs) + + def base_DoSetSize(*args, **kwargs): + """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" + return _wizard.PyWizardPage_base_DoSetSize(*args, **kwargs) + + def base_DoSetClientSize(*args, **kwargs): + """base_DoSetClientSize(int width, int height)""" + return _wizard.PyWizardPage_base_DoSetClientSize(*args, **kwargs) + + def base_DoSetVirtualSize(*args, **kwargs): + """base_DoSetVirtualSize(int x, int y)""" + return _wizard.PyWizardPage_base_DoSetVirtualSize(*args, **kwargs) + + def base_DoGetSize(*args, **kwargs): + """base_DoGetSize() -> (width, height)""" + return _wizard.PyWizardPage_base_DoGetSize(*args, **kwargs) + + def base_DoGetClientSize(*args, **kwargs): + """base_DoGetClientSize() -> (width, height)""" + return _wizard.PyWizardPage_base_DoGetClientSize(*args, **kwargs) + + def base_DoGetPosition(*args, **kwargs): + """base_DoGetPosition() -> (x,y)""" + return _wizard.PyWizardPage_base_DoGetPosition(*args, **kwargs) + + def base_DoGetVirtualSize(*args, **kwargs): + """base_DoGetVirtualSize() -> Size""" + return _wizard.PyWizardPage_base_DoGetVirtualSize(*args, **kwargs) + + def base_DoGetBestSize(*args, **kwargs): + """base_DoGetBestSize() -> Size""" + return _wizard.PyWizardPage_base_DoGetBestSize(*args, **kwargs) + + def base_InitDialog(*args, **kwargs): + """base_InitDialog()""" + return _wizard.PyWizardPage_base_InitDialog(*args, **kwargs) + + def base_TransferDataToWindow(*args, **kwargs): + """base_TransferDataToWindow() -> bool""" + return _wizard.PyWizardPage_base_TransferDataToWindow(*args, **kwargs) + + def base_TransferDataFromWindow(*args, **kwargs): + """base_TransferDataFromWindow() -> bool""" + return _wizard.PyWizardPage_base_TransferDataFromWindow(*args, **kwargs) + + def base_Validate(*args, **kwargs): + """base_Validate() -> bool""" + return _wizard.PyWizardPage_base_Validate(*args, **kwargs) + + def base_AcceptsFocus(*args, **kwargs): + """base_AcceptsFocus() -> bool""" + return _wizard.PyWizardPage_base_AcceptsFocus(*args, **kwargs) + + def base_AcceptsFocusFromKeyboard(*args, **kwargs): + """base_AcceptsFocusFromKeyboard() -> bool""" + return _wizard.PyWizardPage_base_AcceptsFocusFromKeyboard(*args, **kwargs) + + def base_GetMaxSize(*args, **kwargs): + """base_GetMaxSize() -> Size""" + return _wizard.PyWizardPage_base_GetMaxSize(*args, **kwargs) + + def base_AddChild(*args, **kwargs): + """base_AddChild(Window child)""" + return _wizard.PyWizardPage_base_AddChild(*args, **kwargs) + + def base_RemoveChild(*args, **kwargs): + """base_RemoveChild(Window child)""" + return _wizard.PyWizardPage_base_RemoveChild(*args, **kwargs) + class PyWizardPagePtr(PyWizardPage): def __init__(self, this): @@ -90,23 +174,45 @@ class PyWizardPagePtr(PyWizardPage): _wizard.PyWizardPage_swigregister(PyWizardPagePtr) def PrePyWizardPage(*args, **kwargs): + """PrePyWizardPage() -> PyWizardPage""" val = _wizard.new_PrePyWizardPage(*args, **kwargs) val.thisown = 1 return val class WizardPageSimple(WizardPage): + def __repr__(self): + return "<%s.%s; proxy of C++ wxWizardPageSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): + """ + __init__(Wizard parent, WizardPage prev=None, WizardPage next=None, + Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> WizardPageSimple + """ newobj = _wizard.new_WizardPageSimple(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setOORInfo(self) - def Create(*args, **kwargs): return _wizard.WizardPageSimple_Create(*args, **kwargs) - def SetPrev(*args, **kwargs): return _wizard.WizardPageSimple_SetPrev(*args, **kwargs) - def SetNext(*args, **kwargs): return _wizard.WizardPageSimple_SetNext(*args, **kwargs) - Chain = staticmethod(_wizard.WizardPageSimple_Chain) - def __repr__(self): - return "<%s.%s; proxy of C++ wxWizardPageSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + + def Create(*args, **kwargs): + """ + Create(Wizard parent=None, WizardPage prev=None, WizardPage next=None, + Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> bool + """ + return _wizard.WizardPageSimple_Create(*args, **kwargs) + + def SetPrev(*args, **kwargs): + """SetPrev(WizardPage prev)""" + return _wizard.WizardPageSimple_SetPrev(*args, **kwargs) + + def SetNext(*args, **kwargs): + """SetNext(WizardPage next)""" + return _wizard.WizardPageSimple_SetNext(*args, **kwargs) + + def Chain(*args, **kwargs): + """Chain(WizardPageSimple first, WizardPageSimple second)""" + return _wizard.WizardPageSimple_Chain(*args, **kwargs) + + Chain = staticmethod(Chain) class WizardPageSimplePtr(WizardPageSimple): def __init__(self, this): @@ -116,34 +222,85 @@ class WizardPageSimplePtr(WizardPageSimple): _wizard.WizardPageSimple_swigregister(WizardPageSimplePtr) def PreWizardPageSimple(*args, **kwargs): + """PreWizardPageSimple() -> WizardPageSimple""" val = _wizard.new_PreWizardPageSimple(*args, **kwargs) val.thisown = 1 return val -WizardPageSimple_Chain = _wizard.WizardPageSimple_Chain +def WizardPageSimple_Chain(*args, **kwargs): + """WizardPageSimple_Chain(WizardPageSimple first, WizardPageSimple second)""" + return _wizard.WizardPageSimple_Chain(*args, **kwargs) class Wizard(windows.Dialog): + def __repr__(self): + return "<%s.%s; proxy of C++ wxWizard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): + """ + __init__(Window parent, int id=-1, String title=EmptyString, + Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition, + long style=DEFAULT_DIALOG_STYLE) -> Wizard + """ newobj = _wizard.new_Wizard(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setOORInfo(self) - def Create(*args, **kwargs): return _wizard.Wizard_Create(*args, **kwargs) - def Init(*args, **kwargs): return _wizard.Wizard_Init(*args, **kwargs) - def RunWizard(*args, **kwargs): return _wizard.Wizard_RunWizard(*args, **kwargs) - def GetCurrentPage(*args, **kwargs): return _wizard.Wizard_GetCurrentPage(*args, **kwargs) - def SetPageSize(*args, **kwargs): return _wizard.Wizard_SetPageSize(*args, **kwargs) - def GetPageSize(*args, **kwargs): return _wizard.Wizard_GetPageSize(*args, **kwargs) - def FitToPage(*args, **kwargs): return _wizard.Wizard_FitToPage(*args, **kwargs) - def GetPageAreaSizer(*args, **kwargs): return _wizard.Wizard_GetPageAreaSizer(*args, **kwargs) - def SetBorder(*args, **kwargs): return _wizard.Wizard_SetBorder(*args, **kwargs) - def IsRunning(*args, **kwargs): return _wizard.Wizard_IsRunning(*args, **kwargs) - def ShowPage(*args, **kwargs): return _wizard.Wizard_ShowPage(*args, **kwargs) - def HasNextPage(*args, **kwargs): return _wizard.Wizard_HasNextPage(*args, **kwargs) - def HasPrevPage(*args, **kwargs): return _wizard.Wizard_HasPrevPage(*args, **kwargs) - def __repr__(self): - return "<%s.%s; proxy of C++ wxWizard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + + def Create(*args, **kwargs): + """ + Create(Window parent, int id=-1, String title=EmptyString, + Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition) -> bool + """ + return _wizard.Wizard_Create(*args, **kwargs) + + def Init(*args, **kwargs): + """Init()""" + return _wizard.Wizard_Init(*args, **kwargs) + + def RunWizard(*args, **kwargs): + """RunWizard(WizardPage firstPage) -> bool""" + return _wizard.Wizard_RunWizard(*args, **kwargs) + + def GetCurrentPage(*args, **kwargs): + """GetCurrentPage() -> WizardPage""" + return _wizard.Wizard_GetCurrentPage(*args, **kwargs) + + def SetPageSize(*args, **kwargs): + """SetPageSize(Size size)""" + return _wizard.Wizard_SetPageSize(*args, **kwargs) + + def GetPageSize(*args, **kwargs): + """GetPageSize() -> Size""" + return _wizard.Wizard_GetPageSize(*args, **kwargs) + + def FitToPage(*args, **kwargs): + """FitToPage(WizardPage firstPage)""" + return _wizard.Wizard_FitToPage(*args, **kwargs) + + def GetPageAreaSizer(*args, **kwargs): + """GetPageAreaSizer() -> Sizer""" + return _wizard.Wizard_GetPageAreaSizer(*args, **kwargs) + + def SetBorder(*args, **kwargs): + """SetBorder(int border)""" + return _wizard.Wizard_SetBorder(*args, **kwargs) + + def IsRunning(*args, **kwargs): + """IsRunning() -> bool""" + return _wizard.Wizard_IsRunning(*args, **kwargs) + + def ShowPage(*args, **kwargs): + """ShowPage(WizardPage page, bool goingForward=True) -> bool""" + return _wizard.Wizard_ShowPage(*args, **kwargs) + + def HasNextPage(*args, **kwargs): + """HasNextPage(WizardPage page) -> bool""" + return _wizard.Wizard_HasNextPage(*args, **kwargs) + + def HasPrevPage(*args, **kwargs): + """HasPrevPage(WizardPage page) -> bool""" + return _wizard.Wizard_HasPrevPage(*args, **kwargs) + class WizardPtr(Wizard): def __init__(self, this): @@ -153,6 +310,7 @@ class WizardPtr(Wizard): _wizard.Wizard_swigregister(WizardPtr) def PreWizard(*args, **kwargs): + """PreWizard() -> Wizard""" val = _wizard.new_PreWizard(*args, **kwargs) val.thisown = 1 return val