]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_pen.i
added defines for wxchar workaround
[wxWidgets.git] / wxPython / src / _pen.i
index e7d1b7e8eb4a6ddbdba4270200d1d9bc8eeaa96e..911f63d1d072ee4164a6d94fa118f6b8ca3a37d8 100644 (file)
@@ -54,14 +54,19 @@ public:
         PyObject* GetDashes() {
             wxDash* dashes;
             int count = self->GetDashes(&dashes);
         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]));
             PyObject* retval = PyList_New(0);
             for (int x=0; x<count; x++)
                 PyList_Append(retval, PyInt_FromLong(dashes[x]));
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
             return retval;
         }
     }
             return retval;
         }
     }
+    
+    %extend {
+        bool __eq__(const wxPen* other) { return other ? (*self == *other) : False; }
+        bool __ne__(const wxPen* other) { return other ? (*self != *other) : True;  }
+    }
 
 #ifndef __WXMAC__
 //  wxDash* GetDash() const;
 
 #ifndef __WXMAC__
 //  wxDash* GetDash() const;