X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dec68aa52ae5434af33dbac001a5b48d341b100..c5fb56c07a3718798459a69c74b3124ab58c65b5:/utils/wxPython/src/gtk/image.py?ds=sidebyside diff --git a/utils/wxPython/src/gtk/image.py b/utils/wxPython/src/gtk/image.py index e76564c391..1f0924638d 100644 --- a/utils/wxPython/src/gtk/image.py +++ b/utils/wxPython/src/gtk/image.py @@ -182,6 +182,10 @@ class wxImagePtr : def GetHeight(self, *_args, **_kwargs): val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs) return val + def GetSubImage(self, *_args, **_kwargs): + val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs) + if val: val = wxImagePtr(val) ; val.thisown = 1 + return val def GetData(self, *_args, **_kwargs): val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs) return val