X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9df61a29d2ff6ec6037c04a4da6d5418c1a5fbc9..2403536a34a03d3bba22b55633b8d23e125b0f8a:/wxPython/src/gtk/mdi.py?ds=sidebyside diff --git a/wxPython/src/gtk/mdi.py b/wxPython/src/gtk/mdi.py index 957727119f..15ae5c30fb 100644 --- a/wxPython/src/gtk/mdi.py +++ b/wxPython/src/gtk/mdi.py @@ -21,6 +21,9 @@ class wxMDIParentFramePtr(wxFramePtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(mdic.wxMDIParentFrame_Create,(self,) + _args, _kwargs) + return val def ActivateNext(self, *_args, **_kwargs): val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs) return val @@ -51,15 +54,24 @@ class wxMDIParentFrame(wxMDIParentFramePtr): def __init__(self,*_args,**_kwargs): self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs) self.thisown = 1 - #wx._StdFrameCallbacks(self) + self._setOORInfo(self) + +def wxPreMDIParentFrame(*_args,**_kwargs): + val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val class wxMDIChildFramePtr(wxFramePtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(mdic.wxMDIChildFrame_Create,(self,) + _args, _kwargs) + return val def Activate(self, *_args, **_kwargs): val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs) return val @@ -75,25 +87,39 @@ class wxMDIChildFrame(wxMDIChildFramePtr): def __init__(self,*_args,**_kwargs): self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs) self.thisown = 1 - #wx._StdFrameCallbacks(self) + self._setOORInfo(self) +def wxPreMDIChildFrame(*_args,**_kwargs): + val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val + class wxMDIClientWindowPtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(mdic.wxMDIClientWindow_Create,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxMDIClientWindow(wxMDIClientWindowPtr): def __init__(self,*_args,**_kwargs): self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs) self.thisown = 1 - #wx._StdWindowCallbacks(self) - #wx._StdOnScrollCallbacks(self) + self._setOORInfo(self) + +def wxPreMDIClientWindow(*_args,**_kwargs): + val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val