SWIGged updates for wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-04 07:36:19 +00:00
parent 0989a5ccde
commit 5f21a9528b
2 changed files with 55 additions and 0 deletions

View File

@@ -118,6 +118,10 @@ class wxFontPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def wxFontFromNativeInfoString(self, *_args, **_kwargs):
val = apply(fontsc.wxFont_wxFontFromNativeInfoString,(self,) + _args, _kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def __del__(self,fontsc=fontsc):
if self.thisown == 1 :
fontsc.delete_wxFont(self)