X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d99702e4b41ed8b4110325e3dd9d710b5d32562..922dc97681d8b286a348f61778dd11a9b696658f:/utils/wxPython/src/msw/misc.py diff --git a/utils/wxPython/src/msw/misc.py b/utils/wxPython/src/msw/misc.py index 7aa83f61a3..bdcb7de858 100644 --- a/utils/wxPython/src/msw/misc.py +++ b/utils/wxPython/src/msw/misc.py @@ -74,6 +74,12 @@ class wxRealPointPtr : def __del__(self,miscc=miscc): if self.thisown == 1 : miscc.delete_wxRealPoint(self) + def Set(self, *_args, **_kwargs): + val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs) + return val + def asTuple(self, *_args, **_kwargs): + val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs) + return val def __setattr__(self,name,value): if name == "x" : miscc.wxRealPoint_x_set(self,value) @@ -90,6 +96,8 @@ class wxRealPointPtr : raise AttributeError,name def __repr__(self): return "" % (self.this,) + def __str__(self): return str(self.asTuple()) + def __repr__(self): return str(self.asTuple()) class wxRealPoint(wxRealPointPtr): def __init__(self,*_args,**_kwargs): self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)