X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17c0e08c61c69b77e58b3e9ffc78d58fcf105940..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/src/msw/mdi.py?ds=sidebyside diff --git a/wxPython/src/msw/mdi.py b/wxPython/src/msw/mdi.py index 91a9ee973a..b4827d3369 100644 --- a/wxPython/src/msw/mdi.py +++ b/wxPython/src/msw/mdi.py @@ -7,6 +7,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from frames import * @@ -22,53 +24,53 @@ class wxMDIParentFramePtr(wxFramePtr): self.this = this self.thisown = 0 def Create(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_Create,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_Create(self, *_args, **_kwargs) return val def ActivateNext(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_ActivateNext(self, *_args, **_kwargs) return val def ActivatePrevious(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_ActivatePrevious,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_ActivatePrevious(self, *_args, **_kwargs) return val def ArrangeIcons(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_ArrangeIcons,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_ArrangeIcons(self, *_args, **_kwargs) return val def Cascade(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_Cascade,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_Cascade(self, *_args, **_kwargs) return val def GetActiveChild(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_GetActiveChild(self, *_args, **_kwargs) return val def GetClientWindow(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_GetClientWindow(self, *_args, **_kwargs) return val def GetToolBar(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_GetToolBar(self, *_args, **_kwargs) return val def GetWindowMenu(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_GetWindowMenu,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_GetWindowMenu(self, *_args, **_kwargs) return val def SetWindowMenu(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_SetWindowMenu,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_SetWindowMenu(self, *_args, **_kwargs) return val def SetToolBar(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_SetToolBar,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_SetToolBar(self, *_args, **_kwargs) return val def Tile(self, *_args, **_kwargs): - val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs) + val = mdic.wxMDIParentFrame_Tile(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxMDIParentFrame(wxMDIParentFramePtr): def __init__(self,*_args,**_kwargs): - self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs) + self.this = mdic.new_wxMDIParentFrame(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) def wxPreMDIParentFrame(*_args,**_kwargs): - val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs)) + val = wxMDIParentFramePtr(mdic.new_wxPreMDIParentFrame(*_args,**_kwargs)) val.thisown = 1 val._setOORInfo(val) return val @@ -79,29 +81,29 @@ class wxMDIChildFramePtr(wxFramePtr): self.this = this self.thisown = 0 def Create(self, *_args, **_kwargs): - val = apply(mdic.wxMDIChildFrame_Create,(self,) + _args, _kwargs) + val = mdic.wxMDIChildFrame_Create(self, *_args, **_kwargs) return val def Activate(self, *_args, **_kwargs): - val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs) + val = mdic.wxMDIChildFrame_Activate(self, *_args, **_kwargs) return val def Maximize(self, *_args, **_kwargs): - val = apply(mdic.wxMDIChildFrame_Maximize,(self,) + _args, _kwargs) + val = mdic.wxMDIChildFrame_Maximize(self, *_args, **_kwargs) return val def Restore(self, *_args, **_kwargs): - val = apply(mdic.wxMDIChildFrame_Restore,(self,) + _args, _kwargs) + val = mdic.wxMDIChildFrame_Restore(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxMDIChildFrame(wxMDIChildFramePtr): def __init__(self,*_args,**_kwargs): - self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs) + self.this = mdic.new_wxMDIChildFrame(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) def wxPreMDIChildFrame(*_args,**_kwargs): - val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs)) + val = wxMDIChildFramePtr(mdic.new_wxPreMDIChildFrame(*_args,**_kwargs)) val.thisown = 1 val._setOORInfo(val) return val @@ -112,20 +114,20 @@ class wxMDIClientWindowPtr(wxWindowPtr): self.this = this self.thisown = 0 def Create(self, *_args, **_kwargs): - val = apply(mdic.wxMDIClientWindow_Create,(self,) + _args, _kwargs) + val = mdic.wxMDIClientWindow_Create(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxMDIClientWindow(wxMDIClientWindowPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs) + self.this = mdic.new_wxMDIClientWindow(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) def wxPreMDIClientWindow(*_args,**_kwargs): - val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs)) + val = wxMDIClientWindowPtr(mdic.new_wxPreMDIClientWindow(*_args,**_kwargs)) val.thisown = 1 val._setOORInfo(val) return val @@ -139,3 +141,11 @@ def wxPreMDIClientWindow(*_args,**_kwargs): #-------------- VARIABLE WRAPPERS ------------------ +IDM_WINDOWTILE = mdic.IDM_WINDOWTILE +IDM_WINDOWTILEHOR = mdic.IDM_WINDOWTILEHOR +IDM_WINDOWCASCADE = mdic.IDM_WINDOWCASCADE +IDM_WINDOWICONS = mdic.IDM_WINDOWICONS +IDM_WINDOWNEXT = mdic.IDM_WINDOWNEXT +IDM_WINDOWTILEVERT = mdic.IDM_WINDOWTILEVERT +wxFIRST_MDI_CHILD = mdic.wxFIRST_MDI_CHILD +wxLAST_MDI_CHILD = mdic.wxLAST_MDI_CHILD