diff --git a/wxPython/contrib/gizmos/gizmos.i b/wxPython/contrib/gizmos/gizmos.i index e677f65e8c..ba673eba1d 100644 --- a/wxPython/contrib/gizmos/gizmos.i +++ b/wxPython/contrib/gizmos/gizmos.i @@ -553,9 +553,15 @@ public: void SetImageList(wxImageList *imageList); void SetStateImageList(wxImageList *imageList); void SetButtonsImageList(wxImageList *imageList); + void AssignImageList(wxImageList *imageList); + %pragma(python) addtomethod = "AssignImageList:_args[0].thisown = 0" + void AssignStateImageList(wxImageList *imageList); + %pragma(python) addtomethod = "AssignStateImageList:_args[0].thisown = 0" + void AssignButtonsImageList(wxImageList *imageList); + %pragma(python) addtomethod = "AssignButtonsImageList:_args[0].thisown = 0" diff --git a/wxPython/contrib/gizmos/gizmos.py b/wxPython/contrib/gizmos/gizmos.py index 9ad14b4827..bbd10067db 100644 --- a/wxPython/contrib/gizmos/gizmos.py +++ b/wxPython/contrib/gizmos/gizmos.py @@ -375,12 +375,15 @@ class wxTreeListCtrlPtr(wxControlPtr): return val def AssignImageList(self, *_args, **_kwargs): val = gizmosc.wxTreeListCtrl_AssignImageList(self, *_args, **_kwargs) + _args[0].thisown = 0 return val def AssignStateImageList(self, *_args, **_kwargs): val = gizmosc.wxTreeListCtrl_AssignStateImageList(self, *_args, **_kwargs) + _args[0].thisown = 0 return val def AssignButtonsImageList(self, *_args, **_kwargs): val = gizmosc.wxTreeListCtrl_AssignButtonsImageList(self, *_args, **_kwargs) + _args[0].thisown = 0 return val def AddColumn(self, *_args, **_kwargs): val = gizmosc.wxTreeListCtrl_AddColumn(self, *_args, **_kwargs)