%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
+
+%{
+ // Put some wx default wxChar* values into wxStrings.
+ static const wxString wxPyEmptyString(wxT(""));
+%}
+
//---------------------------------------------------------------------------
+
%{
WXSHAPE_IMP_CALLBACKS(wxPyEllipseShape, wxEllipseShape);
%}
int end = 0,
double size = 0.0,
double dist = 0.0,
- const char * name = "",
+ const wxString& name = wxPyEmptyString,
wxPseudoMetaFile *mf = NULL,
long arrowId = -1);
~wxArrowHead();
void AddArrow(int type, int end = ARROW_POSITION_END,
double arrowSize = 10.0, double xOffset = 0.0,
- char* name = "", wxPseudoMetaFile *mf = NULL,
+ const wxString& name = wxPyEmptyString, wxPseudoMetaFile *mf = NULL,
long arrowId = -1);
//void AddArrowOrdered(wxArrowHead *arrow, wxList& referenceList, int end);
%addmethods {
PyObject* GetLineControlPoints() {
wxList* list = self->GetLineControlPoints();
- return wxPy_ConvertList(list, "wxPyControlPoint");
+ return wxPy_ConvertShapeList(list, "wxPyControlPoint");
}
}