X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83b18bab391d242907d18b4b040720eae6202f76..cd72551c2b6cbf67a4a5caf0ba00ba64e41183b2:/wxPython/src/msw/stattool.py diff --git a/wxPython/src/msw/stattool.py b/wxPython/src/msw/stattool.py index 2e212ebc8c..59f27eec6b 100644 --- a/wxPython/src/msw/stattool.py +++ b/wxPython/src/msw/stattool.py @@ -17,6 +17,9 @@ class wxStatusBarPtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(stattoolc.wxStatusBar_Create,(self,) + _args, _kwargs) + return val def GetFieldRect(self, *_args, **_kwargs): val = apply(stattoolc.wxStatusBar_GetFieldRect,(self,) + _args, _kwargs) if val: val = wxRectPtr(val) ; val.thisown = 1 @@ -51,12 +54,18 @@ class wxStatusBar(wxStatusBarPtr): def __init__(self,*_args,**_kwargs): self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs) self.thisown = 1 - #wx._StdWindowCallbacks(self) + self._setOORInfo(self) + +def wxPreStatusBar(*_args,**_kwargs): + val = wxStatusBarPtr(apply(stattoolc.new_wxPreStatusBar,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val -class wxToolBarToolBasePtr : +class wxToolBarToolBasePtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -68,11 +77,9 @@ class wxToolBarToolBasePtr : return val def GetControl(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetControl,(self,) + _args, _kwargs) - if val: val = wxControlPtr(val) return val def GetToolBar(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetToolBar,(self,) + _args, _kwargs) - if val: val = wxToolBarBasePtr(val) return val def IsButton(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_IsButton,(self,) + _args, _kwargs) @@ -97,15 +104,15 @@ class wxToolBarToolBasePtr : return val def GetBitmap1(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetBitmap1,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetBitmap2(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetBitmap2,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetBitmap(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetBitmap,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetShortHelp(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetShortHelp,(self,) + _args, _kwargs) @@ -161,39 +168,30 @@ class wxToolBarBasePtr(wxControlPtr): self.thisown = 0 def AddTool(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_AddTool,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def AddSimpleTool(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_AddSimpleTool,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def InsertTool(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_InsertTool,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def InsertSimpleTool(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_InsertSimpleTool,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def AddControl(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def InsertControl(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_InsertControl,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def AddSeparator(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_AddSeparator,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def InsertSeparator(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_InsertSeparator,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def RemoveTool(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_RemoveTool,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def DeleteToolByPos(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarBase_DeleteToolByPos,(self,) + _args, _kwargs) @@ -302,9 +300,11 @@ class wxToolBarPtr(wxToolBarBasePtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBar_Create,(self,) + _args, _kwargs) + return val def FindToolForPosition(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBar_FindToolForPosition,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def __repr__(self): return "" % (self.this,) @@ -312,18 +312,26 @@ class wxToolBar(wxToolBarPtr): def __init__(self,*_args,**_kwargs): self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs) self.thisown = 1 - #wx._StdWindowCallbacks(self) + self._setOORInfo(self) +def wxPreToolBar(*_args,**_kwargs): + val = wxToolBarPtr(apply(stattoolc.new_wxPreToolBar,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val + class wxToolBarSimplePtr(wxToolBarBasePtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarSimple_Create,(self,) + _args, _kwargs) + return val def FindToolForPosition(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarSimple_FindToolForPosition,(self,) + _args, _kwargs) - if val: val = wxToolBarToolBasePtr(val) return val def __repr__(self): return "" % (self.this,) @@ -331,9 +339,15 @@ class wxToolBarSimple(wxToolBarSimplePtr): def __init__(self,*_args,**_kwargs): self.this = apply(stattoolc.new_wxToolBarSimple,_args,_kwargs) self.thisown = 1 - #wx._StdWindowCallbacks(self) + self._setOORInfo(self) + +def wxPreToolBarSimple(*_args,**_kwargs): + val = wxToolBarSimplePtr(apply(stattoolc.new_wxPreToolBarSimple,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val