Fix for wxPyTipProvider. Now it is possible to derive from it and

implement GetTip.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-20 19:45:24 +00:00
parent 5918786f9f
commit cf27687318
3 changed files with 46 additions and 0 deletions

View File

@@ -187,12 +187,16 @@ class wxPyTipProviderPtr(wxTipProviderPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
val = apply(misc2c.wxPyTipProvider__setCallbackInfo,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxPyTipProvider instance at %s>" % (self.this,)
class wxPyTipProvider(wxPyTipProviderPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(misc2c.new_wxPyTipProvider,_args,_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyTipProvider)