X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9bc19bd1c0347b73a55b5a642f4d590aa76d43..18ba9da6b94a34129b6b04494033905a213a0114:/utils/wxPython/src/gtk/mdi.py diff --git a/utils/wxPython/src/gtk/mdi.py b/utils/wxPython/src/gtk/mdi.py index 89f8f30eea..439734413f 100644 --- a/utils/wxPython/src/gtk/mdi.py +++ b/utils/wxPython/src/gtk/mdi.py @@ -19,44 +19,38 @@ class wxMDIParentFramePtr(wxFramePtr): def __init__(self,this): self.this = this self.thisown = 0 - def ActivateNext(self): - val = mdic.wxMDIParentFrame_ActivateNext(self.this) + def ActivateNext(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs) return val - def ActivatePrevious(self): - val = mdic.wxMDIParentFrame_ActivatePrevious(self.this) + def ActivatePrevious(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_ActivatePrevious,(self,) + _args, _kwargs) return val - def ArrangeIcons(self): - val = mdic.wxMDIParentFrame_ArrangeIcons(self.this) + def ArrangeIcons(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_ArrangeIcons,(self,) + _args, _kwargs) return val - def Cascade(self): - val = mdic.wxMDIParentFrame_Cascade(self.this) + def Cascade(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_Cascade,(self,) + _args, _kwargs) return val - def GetActiveChild(self): - val = mdic.wxMDIParentFrame_GetActiveChild(self.this) - val = wxMDIChildFramePtr(val) + def GetActiveChild(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs) + if val: val = wxMDIChildFramePtr(val) return val - def GetClientWindow(self): - val = mdic.wxMDIParentFrame_GetClientWindow(self.this) - val = wxMDIClientWindowPtr(val) + def GetClientWindow(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs) + if val: val = wxMDIClientWindowPtr(val) return val - def GetToolBar(self): - val = mdic.wxMDIParentFrame_GetToolBar(self.this) - val = wxWindowPtr(val) + def GetToolBar(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs) + if val: val = wxWindowPtr(val) return val - def Tile(self): - val = mdic.wxMDIParentFrame_Tile(self.this) + def Tile(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs) return val def __repr__(self): - return "" + return "" % (self.this,) class wxMDIParentFrame(wxMDIParentFramePtr): - def __init__(self,arg0,arg1,arg2,*args) : - argl = map(None,args) - try: argl[0] = argl[0].this - except: pass - try: argl[1] = argl[1].this - except: pass - args = tuple(argl) - self.this = apply(mdic.new_wxMDIParentFrame,(arg0.this,arg1,arg2,)+args) + def __init__(self,*_args,**_kwargs): + self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs) self.thisown = 1 wx._StdFrameCallbacks(self) @@ -67,26 +61,20 @@ class wxMDIChildFramePtr(wxFramePtr): def __init__(self,this): self.this = this self.thisown = 0 - def Activate(self): - val = mdic.wxMDIChildFrame_Activate(self.this) + def Activate(self, *_args, **_kwargs): + val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs) return val - def Maximize(self,arg0): - val = mdic.wxMDIChildFrame_Maximize(self.this,arg0) + def Maximize(self, *_args, **_kwargs): + val = apply(mdic.wxMDIChildFrame_Maximize,(self,) + _args, _kwargs) return val - def Restore(self): - val = mdic.wxMDIChildFrame_Restore(self.this) + def Restore(self, *_args, **_kwargs): + val = apply(mdic.wxMDIChildFrame_Restore,(self,) + _args, _kwargs) return val def __repr__(self): - return "" + return "" % (self.this,) class wxMDIChildFrame(wxMDIChildFramePtr): - def __init__(self,arg0,arg1,arg2,*args) : - argl = map(None,args) - try: argl[0] = argl[0].this - except: pass - try: argl[1] = argl[1].this - except: pass - args = tuple(argl) - self.this = apply(mdic.new_wxMDIChildFrame,(arg0.this,arg1,arg2,)+args) + def __init__(self,*_args,**_kwargs): + self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs) self.thisown = 1 wx._StdFrameCallbacks(self) @@ -98,10 +86,10 @@ class wxMDIClientWindowPtr(wxWindowPtr): self.this = this self.thisown = 0 def __repr__(self): - return "" + return "" % (self.this,) class wxMDIClientWindow(wxMDIClientWindowPtr): - def __init__(self,arg0,*args) : - self.this = apply(mdic.new_wxMDIClientWindow,(arg0.this,)+args) + def __init__(self,*_args,**_kwargs): + self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs) self.thisown = 1 wx._StdWindowCallbacks(self) wx._StdOnScrollCallbacks(self)