PyObject* GetDashes() {
wxDash* dashes;
int count = self->GetDashes(&dashes);
- wxPyBeginBlockThreads();
+ bool blocked = wxPyBeginBlockThreads();
PyObject* retval = PyList_New(0);
for (int x=0; x<count; x++)
PyList_Append(retval, PyInt_FromLong(dashes[x]));
- wxPyEndBlockThreads();
+ wxPyEndBlockThreads(blocked);
return retval;
}
}
+
+ %extend {
+ bool __eq__(const wxPen* other) { return other ? (*self == *other) : False; }
+ bool __ne__(const wxPen* other) { return other ? (*self != *other) : True; }
+ }
-// wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*)NULL); };
+#ifndef __WXMAC__
+// wxDash* GetDash() const;
int GetDashCount() const;
-
+#endif
+
#ifdef __WXMSW__
wxBitmap* GetStipple();
void SetStipple(wxBitmap& stipple);