X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5c9047acf66ae7ee2aed4778832b6887095ce7a..9f06bcb3b8aea7aa709754a217c26e94fe2d5954:/utils/wxPython/src/msw/stattool.py diff --git a/utils/wxPython/src/msw/stattool.py b/utils/wxPython/src/msw/stattool.py index f16438105e..364ce8dda2 100644 --- a/utils/wxPython/src/msw/stattool.py +++ b/utils/wxPython/src/msw/stattool.py @@ -10,6 +10,7 @@ from gdi import * from controls import * from events import * +import wx class wxStatusBarPtr(wxWindowPtr): def __init__(self,this): self.this = this @@ -55,7 +56,7 @@ class wxStatusBar(wxStatusBarPtr): args = tuple(argl) self.this = apply(stattoolc.new_wxStatusBar,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -185,6 +186,10 @@ class wxToolBarPtr(wxControlPtr): val = apply(stattoolc.wxToolBar_AddTool,(self.this,arg0,arg1.this,)+args) val = wxToolBarToolPtr(val) return val + def AddSimpleTool(self,arg0,arg1,*args): + val = apply(stattoolc.wxToolBar_AddSimpleTool,(self.this,arg0,arg1.this,)+args) + val = wxToolBarToolPtr(val) + return val def EnableTool(self,arg0,arg1): val = stattoolc.wxToolBar_EnableTool(self.this,arg0,arg1) return val @@ -202,6 +207,9 @@ class wxToolBarPtr(wxControlPtr): val = wxSizePtr(val) val.thisown = 1 return val + def SetToolBitmapSize(self,arg0): + val = stattoolc.wxToolBar_SetToolBitmapSize(self.this,arg0.this) + return val def GetMaxSize(self): val = stattoolc.wxToolBar_GetMaxSize(self.this) val = wxSizePtr(val) @@ -228,9 +236,6 @@ class wxToolBarPtr(wxControlPtr): def Realize(self): val = stattoolc.wxToolBar_Realize(self.this) return val - def SetToolBitmapSize(self,arg0): - val = stattoolc.wxToolBar_SetToolBitmapSize(self.this,arg0.this) - return val def SetToolLongHelp(self,arg0,arg1): val = stattoolc.wxToolBar_SetToolLongHelp(self.this,arg0,arg1) return val @@ -261,7 +266,7 @@ class wxToolBar(wxToolBarPtr): args = tuple(argl) self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self)