X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbfc9df6768069f770bf8299fc0e6f528a92d4a8..fe45b493dcc42fea4ad4f781a4fb7844d2e95fd0:/wxPython/src/_toolbar.i diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index 629b1b2c36..f027e49a7c 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -102,6 +102,11 @@ public: void Detach(); void Attach(wxToolBarBase *tbar); + // these methods are only for tools of wxITEM_DROPDOWN kind (but even such + // tools can have a NULL associated menu) + void SetDropdownMenu(wxMenu *menu); + wxMenu *GetDropdownMenu() const; + //wxObject *GetClientData(); %extend { // convert the ClientData back to a PyObject @@ -404,6 +409,10 @@ public: size_t GetToolsCount() const; + // Set dropdown menu + bool SetDropdownMenu(int toolid, wxMenu *menu); + + %property(Margins, GetMargins, SetMargins, doc="See `GetMargins` and `SetMargins`"); %property(MaxCols, GetMaxCols, doc="See `GetMaxCols`"); %property(MaxRows, GetMaxRows, doc="See `GetMaxRows`");