Fixed the equality and inequality operators for some of the basic
data types (wx.Point, wx.Size, wx.Colour, etc.) to no longer raise a TypeError if the compared object is not compatible, but to just return a boolean as expected. For example:: wx.Colour(64,0,64) == 123 ==> False git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,8 +68,16 @@
|
||||
}
|
||||
%enddef
|
||||
|
||||
|
||||
|
||||
// This macro can be used to disable the releasing of the GIL when calling the
|
||||
// C++ function.
|
||||
%define KeepGIL(name)
|
||||
%exception name {
|
||||
$action
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
%enddef
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// some type definitions to simplify things for SWIG
|
||||
|
||||
|
Reference in New Issue
Block a user