From de871c916eded43947f5107ab4f6bd15632a581e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 15 Apr 2006 05:15:56 +0000 Subject: [PATCH] Add wxButtonToolBar, but since it is currently only enabled for Mac leave it #if'd out for now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_toolbar.i | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index ffcfb67b40..67e636381e 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -413,10 +413,40 @@ public: long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); - wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); - static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //--------------------------------------------------------------------------- + +#if 0 +%{ +#include +%} + +MustHaveApp(wxToolBar); +class wxButtonToolBar : public wxToolBarBase +{ +public: + %pythonAppend wxButtonToolBar "self._setOORInfo(self)" + %pythonAppend wxButtonToolBar() "" + + wxButtonToolBar(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); + %RenameCtor(PreButtonToolBar, wxButtonToolBar()); + + + bool Create(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); +}; + +#endif +//---------------------------------------------------------------------------