+ // add a check tool, i.e. a tool which can be toggled
+ wxToolBarToolBase *AddCheckTool(int id,
+ const wxString& label,
+ const wxBitmap& bitmap,
+ const wxBitmap& bmpDisabled = wxNullBitmap,
+ const wxString& shortHelp = wxEmptyString,
+ const wxString& longHelp = wxEmptyString,
+ PyObject *clientData = NULL)
+ {
+ wxPyUserData* udata = NULL;
+ if (clientData)
+ udata = new wxPyUserData(clientData);
+ return self->AddCheckTool(id, label, bitmap, bmpDisabled,
+ shortHelp, longHelp, udata);
+ }
+
+ // add a radio tool, i.e. a tool which can be toggled and releases any
+ // other toggled radio tools in the same group when it happens
+ wxToolBarToolBase *AddRadioTool(int id,
+ const wxString& label,
+ const wxBitmap& bitmap,
+ const wxBitmap& bmpDisabled = wxNullBitmap,
+ const wxString& shortHelp = wxEmptyString,
+ const wxString& longHelp = wxEmptyString,
+ PyObject *clientData = NULL)
+ {
+ wxPyUserData* udata = NULL;
+ if (clientData)
+ udata = new wxPyUserData(clientData);
+ return self->AddRadioTool(id, label, bitmap, bmpDisabled,
+ shortHelp, longHelp, udata);
+ }