X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d24a34bb5d3f17472179b38bcb0be253551fce65..2f0062dfe4a74d5cdb663119f95e4a5fd0509b2d:/utils/wxPython/src/gtk/misc2.py diff --git a/utils/wxPython/src/gtk/misc2.py b/utils/wxPython/src/gtk/misc2.py index 26017939a1..7ffd3c947f 100644 --- a/utils/wxPython/src/gtk/misc2.py +++ b/utils/wxPython/src/gtk/misc2.py @@ -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 "" + return "" % (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