Allow comparrisons with None
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -668,14 +668,8 @@ wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
|
||||
#include "wx/wxPython/pytree.h"
|
||||
|
||||
static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
|
||||
bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){
|
||||
if (!other) return False;
|
||||
return *self == *other;
|
||||
}
|
||||
bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){
|
||||
if (!other) return True;
|
||||
return *self != *other;
|
||||
}
|
||||
bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
|
||||
bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
|
||||
void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
|
||||
// C++ version of Python aware wxTreeCtrl
|
||||
class wxPyTreeCtrl : public wxTreeCtrl {
|
||||
@@ -22822,7 +22816,7 @@ static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObjec
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2);
|
||||
result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@@ -22850,7 +22844,7 @@ static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObjec
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2);
|
||||
result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
|
||||
Reference in New Issue
Block a user