X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65191ae8f2f5f19e6e042b8eb596ff3b0776dba0..cdc6a041296fb457ac693691c8ce62c99d3acb41:/wxPython/src/gtk/frames.py diff --git a/wxPython/src/gtk/frames.py b/wxPython/src/gtk/frames.py index 7116073502..26b4e08cff 100644 --- a/wxPython/src/gtk/frames.py +++ b/wxPython/src/gtk/frames.py @@ -5,6 +5,8 @@ from misc import * from gdi import * +from fonts import * + from windows import * from clip_dnd import * @@ -39,11 +41,14 @@ 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 SetIcons(self, *_args, **_kwargs): + val = apply(framesc.wxTopLevelWindow_SetIcons,(self,) + _args, _kwargs) + return val def ShowFullScreen(self, *_args, **_kwargs): val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs) return val @@ -62,12 +67,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 @@ -109,6 +116,21 @@ class wxFramePtr(wxTopLevelWindowPtr): def SetStatusWidths(self, *_args, **_kwargs): val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs) return val + def PushStatusText(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_PushStatusText,(self,) + _args, _kwargs) + return val + def PopStatusText(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_PopStatusText,(self,) + _args, _kwargs) + return val + def DoGiveHelp(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_DoGiveHelp,(self,) + _args, _kwargs) + return val + def SetStatusBarPane(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SetStatusBarPane,(self,) + _args, _kwargs) + return val + def GetStatusBarPane(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_GetStatusBarPane,(self,) + _args, _kwargs) + return val def CreateToolBar(self, *_args, **_kwargs): val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs) return val @@ -118,18 +140,23 @@ class wxFramePtr(wxTopLevelWindowPtr): def SetToolBar(self, *_args, **_kwargs): val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs) return val + def SendSizeEvent(self, *_args, **_kwargs): + val = apply(framesc.wxFrame_SendSizeEvent,(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 @@ -173,12 +200,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 @@ -195,25 +224,60 @@ 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): +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 wxSplashScreenWindow(wxSplashScreenWindowPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(framesc.new_wxSplashScreenWindow,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) + + + + +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 wxTipWindow(wxTipWindowPtr): + return "" % (self.this,) +class wxSplashScreen(wxSplashScreenPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(framesc.new_wxTipWindow,_args,_kwargs) + self.this = apply(framesc.new_wxSplashScreen,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -233,3 +297,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