X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54f9ee450905e98296e6afd1376b3d1e06a1e00f..bc50a2ae95f2ab36b16ceedc7902a9cbfb2f70ea:/wxPython/src/gtk/wizard.py diff --git a/wxPython/src/gtk/wizard.py b/wxPython/src/gtk/wizard.py index e4fa1a1dd7..118f99430f 100644 --- a/wxPython/src/gtk/wizard.py +++ b/wxPython/src/gtk/wizard.py @@ -1,11 +1,58 @@ -# This file was created automatically by SWIG. +# This file was created automatically by SWIG 1.3.27. # Don't modify this file, modify the SWIG interface instead. +""" +`Wizard` is a dialog class that guides the user through a sequence of steps, +or pages. +""" + import _wizard +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "this"): + if isinstance(value, class_type): + self.__dict__[name] = value.this + if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown + del value.thisown + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name) or (name == "thisown"): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError,name + +import types +try: + _object = types.ObjectType + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 +del types + + +def _swig_setattr_nondynamic_method(set): + def set_attr(self,name,value): + if hasattr(self,name) or (name in ("this", "thisown")): + set(self,name,value) + else: + raise AttributeError("You cannot add attributes to %s" % self) + return set_attr + + import _windows import _core wx = _core +__docfilter__ = wx.__DocFilter(globals()) WIZARD_EX_HELPBUTTON = _wizard.WIZARD_EX_HELPBUTTON wxEVT_WIZARD_PAGE_CHANGED = _wizard.wxEVT_WIZARD_PAGE_CHANGED wxEVT_WIZARD_PAGE_CHANGING = _wizard.wxEVT_WIZARD_PAGE_CHANGING @@ -19,6 +66,7 @@ EVT_WIZARD_HELP = wx.PyEventBinder( wxEVT_WIZARD_HELP, 1) EVT_WIZARD_FINISHED = wx.PyEventBinder( wxEVT_WIZARD_FINISHED, 1) class WizardEvent(_core.NotifyEvent): + """Proxy of C++ WizardEvent class""" 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): @@ -47,6 +95,7 @@ class WizardEventPtr(WizardEvent): _wizard.WizardEvent_swigregister(WizardEventPtr) class WizardPage(_windows.Panel): + """Proxy of C++ WizardPage class""" 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,) @@ -75,6 +124,7 @@ class WizardPagePtr(WizardPage): _wizard.WizardPage_swigregister(WizardPagePtr) class PyWizardPage(WizardPage): + """Proxy of C++ PyWizardPage class""" 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): @@ -93,77 +143,250 @@ class PyWizardPage(WizardPage): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs) - def base_DoMoveWindow(*args, **kwargs): - """base_DoMoveWindow(self, int x, int y, int width, int height)""" - return _wizard.PyWizardPage_base_DoMoveWindow(*args, **kwargs) + def DoMoveWindow(*args, **kwargs): + """DoMoveWindow(self, int x, int y, int width, int height)""" + return _wizard.PyWizardPage_DoMoveWindow(*args, **kwargs) - def base_DoSetSize(*args, **kwargs): - """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" - return _wizard.PyWizardPage_base_DoSetSize(*args, **kwargs) + def DoSetSize(*args, **kwargs): + """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" + return _wizard.PyWizardPage_DoSetSize(*args, **kwargs) - def base_DoSetClientSize(*args, **kwargs): - """base_DoSetClientSize(self, int width, int height)""" - return _wizard.PyWizardPage_base_DoSetClientSize(*args, **kwargs) + def DoSetClientSize(*args, **kwargs): + """DoSetClientSize(self, int width, int height)""" + return _wizard.PyWizardPage_DoSetClientSize(*args, **kwargs) - def base_DoSetVirtualSize(*args, **kwargs): - """base_DoSetVirtualSize(self, int x, int y)""" - return _wizard.PyWizardPage_base_DoSetVirtualSize(*args, **kwargs) + def DoSetVirtualSize(*args, **kwargs): + """DoSetVirtualSize(self, int x, int y)""" + return _wizard.PyWizardPage_DoSetVirtualSize(*args, **kwargs) - def base_DoGetSize(*args, **kwargs): - """base_DoGetSize() -> (width, height)""" - return _wizard.PyWizardPage_base_DoGetSize(*args, **kwargs) + def DoGetSize(*args, **kwargs): + """DoGetSize() -> (width, height)""" + return _wizard.PyWizardPage_DoGetSize(*args, **kwargs) - def base_DoGetClientSize(*args, **kwargs): - """base_DoGetClientSize() -> (width, height)""" - return _wizard.PyWizardPage_base_DoGetClientSize(*args, **kwargs) + def DoGetClientSize(*args, **kwargs): + """DoGetClientSize() -> (width, height)""" + return _wizard.PyWizardPage_DoGetClientSize(*args, **kwargs) - def base_DoGetPosition(*args, **kwargs): - """base_DoGetPosition() -> (x,y)""" - return _wizard.PyWizardPage_base_DoGetPosition(*args, **kwargs) + def DoGetPosition(*args, **kwargs): + """DoGetPosition() -> (x,y)""" + return _wizard.PyWizardPage_DoGetPosition(*args, **kwargs) - def base_DoGetVirtualSize(*args, **kwargs): - """base_DoGetVirtualSize(self) -> Size""" - return _wizard.PyWizardPage_base_DoGetVirtualSize(*args, **kwargs) + def DoGetVirtualSize(*args, **kwargs): + """DoGetVirtualSize(self) -> Size""" + return _wizard.PyWizardPage_DoGetVirtualSize(*args, **kwargs) - def base_DoGetBestSize(*args, **kwargs): - """base_DoGetBestSize(self) -> Size""" - return _wizard.PyWizardPage_base_DoGetBestSize(*args, **kwargs) + def DoGetBestSize(*args, **kwargs): + """DoGetBestSize(self) -> Size""" + return _wizard.PyWizardPage_DoGetBestSize(*args, **kwargs) - def base_InitDialog(*args, **kwargs): - """base_InitDialog(self)""" - return _wizard.PyWizardPage_base_InitDialog(*args, **kwargs) + def InitDialog(*args, **kwargs): + """ + InitDialog(self) - def base_TransferDataToWindow(*args, **kwargs): - """base_TransferDataToWindow(self) -> bool""" - return _wizard.PyWizardPage_base_TransferDataToWindow(*args, **kwargs) + Sends an EVT_INIT_DIALOG event, whose handler usually transfers data + to the dialog via validators. + """ + return _wizard.PyWizardPage_InitDialog(*args, **kwargs) - def base_TransferDataFromWindow(*args, **kwargs): - """base_TransferDataFromWindow(self) -> bool""" - return _wizard.PyWizardPage_base_TransferDataFromWindow(*args, **kwargs) + def TransferDataToWindow(*args, **kwargs): + """ + TransferDataToWindow(self) -> bool - def base_Validate(*args, **kwargs): - """base_Validate(self) -> bool""" - return _wizard.PyWizardPage_base_Validate(*args, **kwargs) + Transfers values to child controls from data areas specified by their + validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra + style flag set, the method will also call TransferDataToWindow() of + all child windows. + """ + return _wizard.PyWizardPage_TransferDataToWindow(*args, **kwargs) - def base_AcceptsFocus(*args, **kwargs): - """base_AcceptsFocus(self) -> bool""" - return _wizard.PyWizardPage_base_AcceptsFocus(*args, **kwargs) + def TransferDataFromWindow(*args, **kwargs): + """ + TransferDataFromWindow(self) -> bool - def base_AcceptsFocusFromKeyboard(*args, **kwargs): - """base_AcceptsFocusFromKeyboard(self) -> bool""" - return _wizard.PyWizardPage_base_AcceptsFocusFromKeyboard(*args, **kwargs) + Transfers values from child controls to data areas specified by their + validators. Returns false if a transfer failed. If the window has + wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will + also call TransferDataFromWindow() of all child windows. + """ + return _wizard.PyWizardPage_TransferDataFromWindow(*args, **kwargs) - def base_GetMaxSize(*args, **kwargs): - """base_GetMaxSize(self) -> Size""" - return _wizard.PyWizardPage_base_GetMaxSize(*args, **kwargs) + def Validate(*args, **kwargs): + """ + Validate(self) -> bool + + Validates the current values of the child controls using their + validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra + style flag set, the method will also call Validate() of all child + windows. Returns false if any of the validations failed. + """ + return _wizard.PyWizardPage_Validate(*args, **kwargs) + + def AcceptsFocus(*args, **kwargs): + """ + AcceptsFocus(self) -> bool - def base_AddChild(*args, **kwargs): - """base_AddChild(self, Window child)""" - return _wizard.PyWizardPage_base_AddChild(*args, **kwargs) + Can this window have focus? + """ + return _wizard.PyWizardPage_AcceptsFocus(*args, **kwargs) - def base_RemoveChild(*args, **kwargs): - """base_RemoveChild(self, Window child)""" - return _wizard.PyWizardPage_base_RemoveChild(*args, **kwargs) + def AcceptsFocusFromKeyboard(*args, **kwargs): + """ + AcceptsFocusFromKeyboard(self) -> bool + + Can this window be given focus by keyboard navigation? if not, the + only way to give it focus (provided it accepts it at all) is to click + it. + """ + return _wizard.PyWizardPage_AcceptsFocusFromKeyboard(*args, **kwargs) + + def GetMaxSize(*args, **kwargs): + """GetMaxSize(self) -> Size""" + return _wizard.PyWizardPage_GetMaxSize(*args, **kwargs) + + def AddChild(*args, **kwargs): + """ + AddChild(self, Window child) + + Adds a child window. This is called automatically by window creation + functions so should not be required by the application programmer. + """ + return _wizard.PyWizardPage_AddChild(*args, **kwargs) + + def RemoveChild(*args, **kwargs): + """ + RemoveChild(self, Window child) + + Removes a child window. This is called automatically by window + deletion functions so should not be required by the application + programmer. + """ + return _wizard.PyWizardPage_RemoveChild(*args, **kwargs) + + def ShouldInheritColours(*args, **kwargs): + """ + ShouldInheritColours(self) -> bool + + Return true from here to allow the colours of this window to be + changed by InheritAttributes, returning false forbids inheriting them + from the parent window. + + The base class version returns false, but this method is overridden in + wxControl where it returns true. + """ + return _wizard.PyWizardPage_ShouldInheritColours(*args, **kwargs) + + def GetDefaultAttributes(*args, **kwargs): + """GetDefaultAttributes(self) -> VisualAttributes""" + return _wizard.PyWizardPage_GetDefaultAttributes(*args, **kwargs) + + def OnInternalIdle(*args, **kwargs): + """OnInternalIdle(self)""" + return _wizard.PyWizardPage_OnInternalIdle(*args, **kwargs) + + def base_DoMoveWindow(*args, **kw): + return PyWizardPage.DoMoveWindow(*args, **kw) + base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, + "Please use PyWizardPage.DoMoveWindow instead.") + + def base_DoSetSize(*args, **kw): + return PyWizardPage.DoSetSize(*args, **kw) + base_DoSetSize = wx._deprecated(base_DoSetSize, + "Please use PyWizardPage.DoSetSize instead.") + + def base_DoSetClientSize(*args, **kw): + return PyWizardPage.DoSetClientSize(*args, **kw) + base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, + "Please use PyWizardPage.DoSetClientSize instead.") + + def base_DoSetVirtualSize(*args, **kw): + return PyWizardPage.DoSetVirtualSize(*args, **kw) + base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, + "Please use PyWizardPage.DoSetVirtualSize instead.") + + def base_DoGetSize(*args, **kw): + return PyWizardPage.DoGetSize(*args, **kw) + base_DoGetSize = wx._deprecated(base_DoGetSize, + "Please use PyWizardPage.DoGetSize instead.") + + def base_DoGetClientSize(*args, **kw): + return PyWizardPage.DoGetClientSize(*args, **kw) + base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, + "Please use PyWizardPage.DoGetClientSize instead.") + + def base_DoGetPosition(*args, **kw): + return PyWizardPage.DoGetPosition(*args, **kw) + base_DoGetPosition = wx._deprecated(base_DoGetPosition, + "Please use PyWizardPage.DoGetPosition instead.") + + def base_DoGetVirtualSize(*args, **kw): + return PyWizardPage.DoGetVirtualSize(*args, **kw) + base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, + "Please use PyWizardPage.DoGetVirtualSize instead.") + + def base_DoGetBestSize(*args, **kw): + return PyWizardPage.DoGetBestSize(*args, **kw) + base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, + "Please use PyWizardPage.DoGetBestSize instead.") + + def base_InitDialog(*args, **kw): + return PyWizardPage.InitDialog(*args, **kw) + base_InitDialog = wx._deprecated(base_InitDialog, + "Please use PyWizardPage.InitDialog instead.") + + def base_TransferDataToWindow(*args, **kw): + return PyWizardPage.TransferDataToWindow(*args, **kw) + base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, + "Please use PyWizardPage.TransferDataToWindow instead.") + + def base_TransferDataFromWindow(*args, **kw): + return PyWizardPage.TransferDataFromWindow(*args, **kw) + base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, + "Please use PyWizardPage.TransferDataFromWindow instead.") + + def base_Validate(*args, **kw): + return PyWizardPage.Validate(*args, **kw) + base_Validate = wx._deprecated(base_Validate, + "Please use PyWizardPage.Validate instead.") + + def base_AcceptsFocus(*args, **kw): + return PyWizardPage.AcceptsFocus(*args, **kw) + base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, + "Please use PyWizardPage.AcceptsFocus instead.") + + def base_AcceptsFocusFromKeyboard(*args, **kw): + return PyWizardPage.AcceptsFocusFromKeyboard(*args, **kw) + base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, + "Please use PyWizardPage.AcceptsFocusFromKeyboard instead.") + + def base_GetMaxSize(*args, **kw): + return PyWizardPage.GetMaxSize(*args, **kw) + base_GetMaxSize = wx._deprecated(base_GetMaxSize, + "Please use PyWizardPage.GetMaxSize instead.") + + def base_AddChild(*args, **kw): + return PyWizardPage.AddChild(*args, **kw) + base_AddChild = wx._deprecated(base_AddChild, + "Please use PyWizardPage.AddChild instead.") + + def base_RemoveChild(*args, **kw): + return PyWizardPage.RemoveChild(*args, **kw) + base_RemoveChild = wx._deprecated(base_RemoveChild, + "Please use PyWizardPage.RemoveChild instead.") + + def base_ShouldInheritColours(*args, **kw): + return PyWizardPage.ShouldInheritColours(*args, **kw) + base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, + "Please use PyWizardPage.ShouldInheritColours instead.") + + def base_GetDefaultAttributes(*args, **kw): + return PyWizardPage.GetDefaultAttributes(*args, **kw) + base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, + "Please use PyWizardPage.GetDefaultAttributes instead.") + + def base_OnInternalIdle(*args, **kw): + return PyWizardPage.OnInternalIdle(*args, **kw) + base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, + "Please use PyWizardPage.OnInternalIdle instead.") class PyWizardPagePtr(PyWizardPage): @@ -180,6 +403,7 @@ def PrePyWizardPage(*args, **kwargs): return val class WizardPageSimple(WizardPage): + """Proxy of C++ WizardPageSimple class""" 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): @@ -209,7 +433,7 @@ class WizardPageSimple(WizardPage): return _wizard.WizardPageSimple_SetNext(*args, **kwargs) def Chain(*args, **kwargs): - """WizardPageSimple.Chain(WizardPageSimple first, WizardPageSimple second)""" + """Chain(WizardPageSimple first, WizardPageSimple second)""" return _wizard.WizardPageSimple_Chain(*args, **kwargs) Chain = staticmethod(Chain) @@ -232,6 +456,7 @@ def WizardPageSimple_Chain(*args, **kwargs): return _wizard.WizardPageSimple_Chain(*args, **kwargs) class Wizard(_windows.Dialog): + """Proxy of C++ Wizard class""" 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): @@ -316,3 +541,4 @@ def PreWizard(*args, **kwargs): return val +