Using a new version of SWIG

A few minor fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-08-18 22:37:56 +00:00
parent e8ac7bf221
commit 2d0918205a
38 changed files with 21433 additions and 18599 deletions

View File

@@ -10,21 +10,21 @@ class wxToolTipPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def SetTip(self,arg0):
val = misc2c.wxToolTip_SetTip(self.this,arg0)
def SetTip(self, *_args, **_kwargs):
val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
return val
def GetTip(self):
val = misc2c.wxToolTip_GetTip(self.this)
def GetTip(self, *_args, **_kwargs):
val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
return val
def GetWindow(self):
val = misc2c.wxToolTip_GetWindow(self.this)
val = wxWindowPtr(val)
def GetWindow(self, *_args, **_kwargs):
val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxToolTip instance>"
return "<C wxToolTip instance at %s>" % (self.this,)
class wxToolTip(wxToolTipPtr):
def __init__(self,arg0) :
self.this = misc2c.new_wxToolTip(arg0)
def __init__(self,*_args,**_kwargs):
self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
self.thisown = 1
@@ -34,22 +34,14 @@ class wxToolTip(wxToolTipPtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxFindWindowByLabel(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(misc2c.wxFindWindowByLabel,(arg0,)+args)
val = wxWindowPtr(val)
def wxFindWindowByLabel(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
if val: val = wxWindowPtr(val)
return val
def wxFindWindowByName(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(misc2c.wxFindWindowByName,(arg0,)+args)
val = wxWindowPtr(val)
def wxFindWindowByName(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
if val: val = wxWindowPtr(val)
return val
wxToolTip_Enable = misc2c.wxToolTip_Enable