X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc29c5e0e116edd9552cf023711b13e3495bcfaf..e19b71646053a07255b308b24321837f8ea76176:/utils/wxPython/src/gtk/image.py diff --git a/utils/wxPython/src/gtk/image.py b/utils/wxPython/src/gtk/image.py index 15ad9c368b..1f0924638d 100644 --- a/utils/wxPython/src/gtk/image.py +++ b/utils/wxPython/src/gtk/image.py @@ -35,9 +35,8 @@ class wxImageHandlerPtr : def __repr__(self): return "" % (self.this,) class wxImageHandler(wxImageHandlerPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(imagec.new_wxImageHandler,_args,_kwargs) - self.thisown = 1 + def __init__(self,this): + self.this = this @@ -183,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