X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/181526acadbce6498481a423c0ed3b541471be97..7cdecac3b7597a3cbb9155d5ee46b852293d8c26:/wxPython/src/msw/html.py diff --git a/wxPython/src/msw/html.py b/wxPython/src/msw/html.py index b2db058c73..c4103cd6e1 100644 --- a/wxPython/src/msw/html.py +++ b/wxPython/src/msw/html.py @@ -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) @@ -511,6 +511,9 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_Create,(self,) + _args, _kwargs) + return val def _setCallbackInfo(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow__setCallbackInfo,(self,) + _args, _kwargs) return val @@ -602,6 +605,12 @@ class wxHtmlWindow(wxHtmlWindowPtr): +def wxPreHtmlWindow(*_args,**_kwargs): + val = wxHtmlWindowPtr(apply(htmlc.new_wxPreHtmlWindow,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val + class wxHtmlDCRendererPtr(wxObjectPtr): def __init__(self,this):