X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0220cbc1695d01a55964f31987f2fe78cf212ca1..c331ac2ed75ba5c435d745e9282c27a339da4f18:/wxPython/src/gtk/frames.py diff --git a/wxPython/src/gtk/frames.py b/wxPython/src/gtk/frames.py index c662bef744..dc3cc8ef01 100644 --- a/wxPython/src/gtk/frames.py +++ b/wxPython/src/gtk/frames.py @@ -39,7 +39,7 @@ 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) @@ -69,6 +69,7 @@ class wxTopLevelWindow(wxTopLevelWindowPtr): def wxPreTopLevelWindow(*_args,**_kwargs): val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs)) val.thisown = 1 + val._setOORInfo(val) return val @@ -132,7 +133,7 @@ class wxFrame(wxFramePtr): def wxPreFrame(*_args,**_kwargs): val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs)) val.thisown = 1 - val._setOORInfo(self) + val._setOORInfo(val) return val @@ -183,7 +184,7 @@ class wxDialog(wxDialogPtr): def wxPreDialog(*_args,**_kwargs): val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs)) val.thisown = 1 - val._setOORInfo(self) + val._setOORInfo(val) return val @@ -207,21 +208,51 @@ class wxMiniFrame(wxMiniFramePtr): def wxPreMiniFrame(*_args,**_kwargs): val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs)) val.thisown = 1 - val._setOORInfo(self) + val._setOORInfo(val) return val -class wxTipWindowPtr(wxFramePtr): +class wxSplashScreenWindowPtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def SetBitmap(self, *_args, **_kwargs): + val = apply(framesc.wxSplashScreenWindow_SetBitmap,(self,) + _args, _kwargs) + return val + def GetBitmap(self, *_args, **_kwargs): + val = apply(framesc.wxSplashScreenWindow_GetBitmap,(self,) + _args, _kwargs) + if val: val = wxBitmapPtr(val) + return val def __repr__(self): - return "" % (self.this,) -class wxTipWindow(wxTipWindowPtr): + return "" % (self.this,) +class wxSplashScreenWindow(wxSplashScreenWindowPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(framesc.new_wxTipWindow,_args,_kwargs) + self.this = apply(framesc.new_wxSplashScreenWindow,_args,_kwargs) + self.thisown = 1 + + + + +class wxSplashScreenPtr(wxFramePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetSplashStyle(self, *_args, **_kwargs): + val = apply(framesc.wxSplashScreen_GetSplashStyle,(self,) + _args, _kwargs) + return val + def GetSplashWindow(self, *_args, **_kwargs): + val = apply(framesc.wxSplashScreen_GetSplashWindow,(self,) + _args, _kwargs) + if val: val = wxSplashScreenWindowPtr(val) + return val + def GetTimeout(self, *_args, **_kwargs): + val = apply(framesc.wxSplashScreen_GetTimeout,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxSplashScreen(wxSplashScreenPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(framesc.new_wxSplashScreen,_args,_kwargs) self.thisown = 1 - self._setOORInfo(self) @@ -241,3 +272,8 @@ wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL wxTOPLEVEL_EX_DIALOG = framesc.wxTOPLEVEL_EX_DIALOG +wxSPLASH_CENTRE_ON_PARENT = framesc.wxSPLASH_CENTRE_ON_PARENT +wxSPLASH_CENTRE_ON_SCREEN = framesc.wxSPLASH_CENTRE_ON_SCREEN +wxSPLASH_NO_CENTRE = framesc.wxSPLASH_NO_CENTRE +wxSPLASH_TIMEOUT = framesc.wxSPLASH_TIMEOUT +wxSPLASH_NO_TIMEOUT = framesc.wxSPLASH_NO_TIMEOUT