X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c34bed1413be4972d22a622d1369d6d61e8433c9..da0ddbd6df973f6c32b0ebb65e4e15514a8cdcf0:/wxPython/src/mac/stattool.py diff --git a/wxPython/src/mac/stattool.py b/wxPython/src/mac/stattool.py index 59f27eec6b..4e8be2301b 100644 --- a/wxPython/src/mac/stattool.py +++ b/wxPython/src/mac/stattool.py @@ -102,18 +102,21 @@ class wxToolBarToolBasePtr(wxObjectPtr): def CanBeToggled(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_CanBeToggled,(self,) + _args, _kwargs) return val - def GetBitmap1(self, *_args, **_kwargs): - val = apply(stattoolc.wxToolBarToolBase_GetBitmap1,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) ; val.thisown = 1 + def GetNormalBitmap(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_GetNormalBitmap,(self,) + _args, _kwargs) + if val: val = wxBitmapPtr(val) return val - def GetBitmap2(self, *_args, **_kwargs): - val = apply(stattoolc.wxToolBarToolBase_GetBitmap2,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) ; val.thisown = 1 + def GetDisabledBitmap(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_GetDisabledBitmap,(self,) + _args, _kwargs) + if val: val = wxBitmapPtr(val) return val def GetBitmap(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetBitmap,(self,) + _args, _kwargs) if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val + def GetLabel(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_GetLabel,(self,) + _args, _kwargs) + return val def GetShortHelp(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_GetShortHelp,(self,) + _args, _kwargs) return val @@ -135,11 +138,14 @@ class wxToolBarToolBasePtr(wxObjectPtr): def SetLongHelp(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_SetLongHelp,(self,) + _args, _kwargs) return val - def SetBitmap1(self, *_args, **_kwargs): - val = apply(stattoolc.wxToolBarToolBase_SetBitmap1,(self,) + _args, _kwargs) + def SetNormalBitmap(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_SetNormalBitmap,(self,) + _args, _kwargs) + return val + def SetDisabledBitmap(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_SetDisabledBitmap,(self,) + _args, _kwargs) return val - def SetBitmap2(self, *_args, **_kwargs): - val = apply(stattoolc.wxToolBarToolBase_SetBitmap2,(self,) + _args, _kwargs) + def SetLabel(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarToolBase_SetLabel,(self,) + _args, _kwargs) return val def Detach(self, *_args, **_kwargs): val = apply(stattoolc.wxToolBarToolBase_Detach,(self,) + _args, _kwargs) @@ -155,6 +161,12 @@ class wxToolBarToolBasePtr(wxObjectPtr): return val def __repr__(self): return "" % (self.this,) + + GetBitmap1 = GetNormalBitmap + GetBitmap2 = GetDisabledBitmap + SetBitmap1 = SetNormalBitmap + SetBitmap2 = SetDisabledBitmap + class wxToolBarToolBase(wxToolBarToolBasePtr): def __init__(self,this): self.this = this @@ -287,6 +299,12 @@ class wxToolBarBasePtr(wxControlPtr): val = apply(stattoolc.wxToolBarBase_GetToolSize,(self,) + _args, _kwargs) if val: val = wxSizePtr(val) ; val.thisown = 1 return val + def FindToolForPosition(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarBase_FindToolForPosition,(self,) + _args, _kwargs) + return val + def IsVertical(self, *_args, **_kwargs): + val = apply(stattoolc.wxToolBarBase_IsVertical,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxToolBarBase(wxToolBarBasePtr):