X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecc08ead918856a70559204f9b5daacc49385eaa..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/wxPython/src/msw/frames.py diff --git a/wxPython/src/msw/frames.py b/wxPython/src/msw/frames.py index d606d12801..8a267e59ef 100644 --- a/wxPython/src/msw/frames.py +++ b/wxPython/src/msw/frames.py @@ -39,11 +39,17 @@ class wxTopLevelWindowPtr(wxWindowPtr): return val def GetIcon(self, *_args, **_kwargs): val = apply(framesc.wxTopLevelWindow_GetIcon,(self,) + _args, _kwargs) - if val: val = wxIconPtr(val) + if val: val = wxIconPtr(val) ; val.thisown = 1 return val def SetIcon(self, *_args, **_kwargs): val = apply(framesc.wxTopLevelWindow_SetIcon,(self,) + _args, _kwargs) return val + def ShowFullScreen(self, *_args, **_kwargs): + val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs) + return val + def IsFullScreen(self, *_args, **_kwargs): + val = apply(framesc.wxTopLevelWindow_IsFullScreen,(self,) + _args, _kwargs) + return val def SetTitle(self, *_args, **_kwargs): val = apply(framesc.wxTopLevelWindow_SetTitle,(self,) + _args, _kwargs) return val @@ -56,12 +62,14 @@ class wxTopLevelWindow(wxTopLevelWindowPtr): def __init__(self,*_args,**_kwargs): self.this = apply(framesc.new_wxTopLevelWindow,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) def wxPreTopLevelWindow(*_args,**_kwargs): val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val @@ -112,33 +120,20 @@ class wxFramePtr(wxTopLevelWindowPtr): def SetToolBar(self, *_args, **_kwargs): val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs) return val - def ShowFullScreen(self, *_args, **_kwargs): - val = apply(framesc.wxFrame_ShowFullScreen,(self,) + _args, _kwargs) - return val - def IsFullScreen(self, *_args, **_kwargs): - val = apply(framesc.wxFrame_IsFullScreen,(self,) + _args, _kwargs) - return val - def Raise(self, *_args, **_kwargs): - val = apply(framesc.wxFrame_Raise,(self,) + _args, _kwargs) - return val - def SetAcceleratorTable(self, *_args, **_kwargs): - val = apply(framesc.wxFrame_SetAcceleratorTable,(self,) + _args, _kwargs) - return val - def MakeModal(self, *_args, **_kwargs): - val = apply(framesc.wxFrame_MakeModal,(self,) + _args, _kwargs) - return val def __repr__(self): return "" % (self.this,) class wxFrame(wxFramePtr): def __init__(self,*_args,**_kwargs): self.this = apply(framesc.new_wxFrame,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) def wxPreFrame(*_args,**_kwargs): val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val @@ -182,12 +177,14 @@ class wxDialog(wxDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(framesc.new_wxDialog,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) def wxPreDialog(*_args,**_kwargs): val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val @@ -204,29 +201,17 @@ class wxMiniFrame(wxMiniFramePtr): def __init__(self,*_args,**_kwargs): self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) def wxPreMiniFrame(*_args,**_kwargs): val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val -class wxTipWindowPtr(wxFramePtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def __repr__(self): - return "" % (self.this,) -class wxTipWindow(wxTipWindowPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(framesc.new_wxTipWindow,_args,_kwargs) - self.thisown = 1 - - - - #-------------- FUNCTION WRAPPERS ------------------