X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a0958b1657f6105b1efcf04032070143b87af80..07b2e1cd389c16c05d74adedf92fda3ca785f2bd:/wxPython/src/msw/html.py diff --git a/wxPython/src/msw/html.py b/wxPython/src/msw/html.py index ba5cd8f56e..b2db058c73 100644 --- a/wxPython/src/msw/html.py +++ b/wxPython/src/msw/html.py @@ -15,6 +15,8 @@ from events import * from streams import * +from utils import * + from mdi import * from frames import * @@ -38,8 +40,6 @@ from printfw import * from sizers import * from filesys import * - -from utils import * import wx class wxHtmlLinkInfoPtr(wxObjectPtr): def __init__(self,this): @@ -267,8 +267,8 @@ class wxHtmlTagHandlerPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(htmlc.wxHtmlTagHandler__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlTagHandler__setCallbackInfo,(self,) + _args, _kwargs) return val def SetParser(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlTagHandler_SetParser,(self,) + _args, _kwargs) @@ -286,7 +286,7 @@ class wxHtmlTagHandler(wxHtmlTagHandlerPtr): def __init__(self,*_args,**_kwargs): self.this = apply(htmlc.new_wxHtmlTagHandler,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxHtmlTagHandler) + self._setCallbackInfo(self, wxHtmlTagHandler) @@ -295,8 +295,8 @@ class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(htmlc.wxHtmlWinTagHandler__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWinTagHandler__setCallbackInfo,(self,) + _args, _kwargs) return val def SetParser(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWinTagHandler_SetParser,(self,) + _args, _kwargs) @@ -314,7 +314,7 @@ class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr): def __init__(self,*_args,**_kwargs): self.this = apply(htmlc.new_wxHtmlWinTagHandler,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxHtmlWinTagHandler) + self._setCallbackInfo(self, wxHtmlWinTagHandler) @@ -511,8 +511,8 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(htmlc.wxHtmlWindow__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow__setCallbackInfo,(self,) + _args, _kwargs) return val def SetPage(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_SetPage,(self,) + _args, _kwargs) @@ -520,6 +520,9 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def LoadPage(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_LoadPage,(self,) + _args, _kwargs) return val + def AppendToPage(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_AppendToPage,(self,) + _args, _kwargs) + return val def GetOpenedPage(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_GetOpenedPage,(self,) + _args, _kwargs) return val @@ -582,15 +585,20 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def base_OnSetTitle(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_base_OnSetTitle,(self,) + _args, _kwargs) return val + def base_OnCellMouseHover(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_base_OnCellMouseHover,(self,) + _args, _kwargs) + return val + def base_OnCellClicked(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_base_OnCellClicked,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxHtmlWindow(wxHtmlWindowPtr): def __init__(self,*_args,**_kwargs): self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxHtmlWindow) - #wx._StdWindowCallbacks(self) - #wx._StdOnScrollCallbacks(self) + self._setCallbackInfo(self, wxHtmlWindow) + self._setOORInfo(self) @@ -756,3 +764,4 @@ wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr wx.wxHtmlWindowPtr = wxHtmlWindowPtr wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr +