X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/src/_toolbar.i?ds=inline diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index 4286bb886f..c7d22e0b2c 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -282,6 +282,7 @@ public: %# For consistency with the backwards compatible methods above, here are %# some non-'Label' versions of the Check and Radio methods + def AddCheckTool(self, id, bitmap, bmpDisabled = wx.NullBitmap, shortHelp = '', longHelp = '', @@ -384,13 +385,15 @@ public: +MustHaveApp(wxToolBar); + class wxToolBar : public wxToolBarBase { public: %pythonAppend wxToolBar "self._setOORInfo(self)" %pythonAppend wxToolBar() "" wxToolBar(wxWindow *parent, - wxWindowID id, + wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, @@ -398,13 +401,16 @@ public: %name(PreToolBar)wxToolBar(); bool Create(wxWindow *parent, - wxWindowID id, + wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------