X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f4e928794167715f19a3021d62b7c4f77611694..c3016fd626994c6f9f555e03076a497eb1f5797c:/wxPython/contrib/ogl/oglbasic.py?ds=sidebyside diff --git a/wxPython/contrib/ogl/oglbasic.py b/wxPython/contrib/ogl/oglbasic.py index 7e23386ead..f9270c70d8 100644 --- a/wxPython/contrib/ogl/oglbasic.py +++ b/wxPython/contrib/ogl/oglbasic.py @@ -9,6 +9,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from events import * @@ -451,12 +453,6 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): def SetBrush(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_SetBrush,(self,) + _args, _kwargs) return val - def SetClientData(self, *_args, **_kwargs): - val = apply(oglbasicc.wxPyShape_SetClientData,(self,) + _args, _kwargs) - return val - def GetClientData(self, *_args, **_kwargs): - val = apply(oglbasicc.wxPyShape_GetClientData,(self,) + _args, _kwargs) - return val def Show(self, *_args, **_kwargs): val = apply(oglbasicc.wxPyShape_Show,(self,) + _args, _kwargs) return val @@ -781,6 +777,15 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr): return val def __repr__(self): return "" % (self.this,) + + def SetClientData(self, data): + self.clientData = data + def GetClientData(self): + if hasattr(self, 'clientData'): + return self.clientData + else: + return None + class wxPyShape(wxPyShapePtr): def __init__(self,this): self.this = this