- // stroke disconnected lines from begin to end points
- DocDeclStr(
- virtual void , StrokeLines( size_t n, const wxPoint2D *beginPoints, const wxPoint2D *endPoints),
- "", "");
-
+// // stroke disconnected lines from begin to end points
+// virtual void StrokeLines( size_t n, const wxPoint2D *beginPoints, const wxPoint2D *endPoints);
+
+ %extend {
+ void StrokeLineSegements(PyObject* beginPoints, PyObject* endPoints)
+ {
+ size_t c1, c2, count;
+ wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
+ wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
+
+ if ( beginP != NULL && endP != NULL )
+ {
+ count = wxMin(c1, c2);
+ self->StrokeLines(count, beginP, endP);
+ }
+ delete [] beginP;
+ delete [] endP;
+ }
+ }