Changes to ensure that GDI objects returned from Python methods are
copied, not just left as references. The old way was counter-intuitive for Python. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -230,14 +230,14 @@ class wxHtmlWinParserPtr(wxHtmlParserPtr):
|
||||
return val
|
||||
def GetLinkColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetLinkColor,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetLinkColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetLinkColor,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetActualColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_GetActualColor,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetActualColor(self, *_args, **_kwargs):
|
||||
val = apply(htmlc.wxHtmlWinParser_SetActualColor,(self,) + _args, _kwargs)
|
||||
|
Reference in New Issue
Block a user