diff options
Diffstat (limited to 'lib/python2.7/site-packages/wx-3.0-msw/wx/html2.py')
-rw-r--r-- | lib/python2.7/site-packages/wx-3.0-msw/wx/html2.py | 425 |
1 files changed, 425 insertions, 0 deletions
diff --git a/lib/python2.7/site-packages/wx-3.0-msw/wx/html2.py b/lib/python2.7/site-packages/wx-3.0-msw/wx/html2.py new file mode 100644 index 0000000..1338011 --- /dev/null +++ b/lib/python2.7/site-packages/wx-3.0-msw/wx/html2.py @@ -0,0 +1,425 @@ +# This file was created automatically by SWIG 1.3.29. +# Don't modify this file, modify the SWIG interface instead. + +""" +Classes for embedding a full web browser rendering engine in a window. +""" + +import _html2 +import new +new_instancemethod = new.instancemethod +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "thisown"): return self.this.own(value) + if (name == "this"): + if type(value).__name__ == 'PySwigObject': + self.__dict__[name] = value + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + if (name == "thisown"): return self.this.own() + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError,name + +def _swig_repr(self): + try: strthis = "proxy of " + self.this.__repr__() + except: strthis = "" + return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) + +import types +try: + _object = types.ObjectType + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 +del types + + +def _swig_setattr_nondynamic_method(set): + def set_attr(self,name,value): + if (name == "thisown"): return self.this.own(value) + if hasattr(self,name) or (name == "this"): + set(self,name,value) + else: + raise AttributeError("You cannot add attributes to %s" % self) + return set_attr + + +import _core +wx = _core +__docfilter__ = wx.__DocFilter(globals()) +#--------------------------------------------------------------------------- + +WEBVIEW_ZOOM_TINY = _html2.WEBVIEW_ZOOM_TINY +WEBVIEW_ZOOM_SMALL = _html2.WEBVIEW_ZOOM_SMALL +WEBVIEW_ZOOM_MEDIUM = _html2.WEBVIEW_ZOOM_MEDIUM +WEBVIEW_ZOOM_LARGE = _html2.WEBVIEW_ZOOM_LARGE +WEBVIEW_ZOOM_LARGEST = _html2.WEBVIEW_ZOOM_LARGEST +WEBVIEW_ZOOM_TYPE_LAYOUT = _html2.WEBVIEW_ZOOM_TYPE_LAYOUT +WEBVIEW_ZOOM_TYPE_TEXT = _html2.WEBVIEW_ZOOM_TYPE_TEXT +WEBVIEW_NAV_ERR_CONNECTION = _html2.WEBVIEW_NAV_ERR_CONNECTION +WEBVIEW_NAV_ERR_CERTIFICATE = _html2.WEBVIEW_NAV_ERR_CERTIFICATE +WEBVIEW_NAV_ERR_AUTH = _html2.WEBVIEW_NAV_ERR_AUTH +WEBVIEW_NAV_ERR_SECURITY = _html2.WEBVIEW_NAV_ERR_SECURITY +WEBVIEW_NAV_ERR_NOT_FOUND = _html2.WEBVIEW_NAV_ERR_NOT_FOUND +WEBVIEW_NAV_ERR_REQUEST = _html2.WEBVIEW_NAV_ERR_REQUEST +WEBVIEW_NAV_ERR_USER_CANCELLED = _html2.WEBVIEW_NAV_ERR_USER_CANCELLED +WEBVIEW_NAV_ERR_OTHER = _html2.WEBVIEW_NAV_ERR_OTHER +WEBVIEW_RELOAD_DEFAULT = _html2.WEBVIEW_RELOAD_DEFAULT +WEBVIEW_RELOAD_NO_CACHE = _html2.WEBVIEW_RELOAD_NO_CACHE +WEBVIEW_FIND_WRAP = _html2.WEBVIEW_FIND_WRAP +WEBVIEW_FIND_ENTIRE_WORD = _html2.WEBVIEW_FIND_ENTIRE_WORD +WEBVIEW_FIND_MATCH_CASE = _html2.WEBVIEW_FIND_MATCH_CASE +WEBVIEW_FIND_HIGHLIGHT_RESULT = _html2.WEBVIEW_FIND_HIGHLIGHT_RESULT +WEBVIEW_FIND_BACKWARDS = _html2.WEBVIEW_FIND_BACKWARDS +WEBVIEW_FIND_DEFAULT = _html2.WEBVIEW_FIND_DEFAULT +class WebViewHistoryItem(object): + """Proxy of C++ WebViewHistoryItem class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String url, String title) -> WebViewHistoryItem""" + _html2.WebViewHistoryItem_swiginit(self,_html2.new_WebViewHistoryItem(*args, **kwargs)) + def GetUrl(*args, **kwargs): + """GetUrl(self) -> String""" + return _html2.WebViewHistoryItem_GetUrl(*args, **kwargs) + + def GetTitle(*args, **kwargs): + """GetTitle(self) -> String""" + return _html2.WebViewHistoryItem_GetTitle(*args, **kwargs) + +_html2.WebViewHistoryItem_swigregister(WebViewHistoryItem) +cvar = _html2.cvar +WebViewBackendDefault = cvar.WebViewBackendDefault +WebViewBackendIE = cvar.WebViewBackendIE +WebViewBackendWebKit = cvar.WebViewBackendWebKit +WebViewDefaultURLStr = cvar.WebViewDefaultURLStr +WebViewNameStr = cvar.WebViewNameStr + +class WebViewFactory(_core.Object): + """Proxy of C++ WebViewFactory class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + def Create(*args): + """ + Create(self) -> WebView + Create(self, Window parent, int id, String url=wxWebViewDefaultURLStr, + Point pos=DefaultPosition, Size size=DefaultSize, + long style=0, String name=wxWebViewNameStr) -> WebView + """ + return _html2.WebViewFactory_Create(*args) + +_html2.WebViewFactory_swigregister(WebViewFactory) + +class WebView(_core.Control): + """Proxy of C++ WebView class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + def Create(*args, **kwargs): + """ + Create(self, Window parent, int id=ID_ANY, String url=wxWebViewDefaultURLStr, + Point pos=DefaultPosition, Size size=DefaultSize, + long style=0, String name=wxWebViewNameStr) -> bool + """ + return _html2.WebView_Create(*args, **kwargs) + + def PreNew(*args, **kwargs): + """PreNew(String backend=wxWebViewBackendDefault) -> WebView""" + return _html2.WebView_PreNew(*args, **kwargs) + + PreNew = staticmethod(PreNew) + def New(*args, **kwargs): + """ + New(Window parent, int id=ID_ANY, String url=wxWebViewDefaultURLStr, + Point pos=DefaultPosition, Size size=DefaultSize, + String backend=wxWebViewBackendDefault, + long style=0, String name=wxWebViewNameStr) -> WebView + """ + val = _html2.WebView_New(*args, **kwargs) + val._setOORInfo(val) + return val + + New = staticmethod(New) + def GetCurrentTitle(*args, **kwargs): + """GetCurrentTitle(self) -> String""" + return _html2.WebView_GetCurrentTitle(*args, **kwargs) + + def GetCurrentURL(*args, **kwargs): + """GetCurrentURL(self) -> String""" + return _html2.WebView_GetCurrentURL(*args, **kwargs) + + def GetPageSource(*args, **kwargs): + """GetPageSource(self) -> String""" + return _html2.WebView_GetPageSource(*args, **kwargs) + + def GetPageText(*args, **kwargs): + """GetPageText(self) -> String""" + return _html2.WebView_GetPageText(*args, **kwargs) + + def IsBusy(*args, **kwargs): + """IsBusy(self) -> bool""" + return _html2.WebView_IsBusy(*args, **kwargs) + + def IsEditable(*args, **kwargs): + """IsEditable(self) -> bool""" + return _html2.WebView_IsEditable(*args, **kwargs) + + def LoadURL(*args, **kwargs): + """LoadURL(self, String url)""" + return _html2.WebView_LoadURL(*args, **kwargs) + + def Print(*args, **kwargs): + """Print(self)""" + return _html2.WebView_Print(*args, **kwargs) + + def RegisterHandler(*args, **kwargs): + """RegisterHandler(self, wxSharedPtr<(wxWebViewHandler)> handler)""" + return _html2.WebView_RegisterHandler(*args, **kwargs) + + def Reload(*args, **kwargs): + """Reload(self, int flags=WEBVIEW_RELOAD_DEFAULT)""" + return _html2.WebView_Reload(*args, **kwargs) + + def RunScript(*args, **kwargs): + """RunScript(self, String javascript)""" + return _html2.WebView_RunScript(*args, **kwargs) + + def SetEditable(*args, **kwargs): + """SetEditable(self, bool enable=True)""" + return _html2.WebView_SetEditable(*args, **kwargs) + + def SetPage(*args): + """ + SetPage(self, String html, String baseUrl) + SetPage(self, InputStream html, String baseUrl) + """ + return _html2.WebView_SetPage(*args) + + def Stop(*args, **kwargs): + """Stop(self)""" + return _html2.WebView_Stop(*args, **kwargs) + + def CanCopy(*args, **kwargs): + """CanCopy(self) -> bool""" + return _html2.WebView_CanCopy(*args, **kwargs) + + def CanCut(*args, **kwargs): + """CanCut(self) -> bool""" + return _html2.WebView_CanCut(*args, **kwargs) + + def CanPaste(*args, **kwargs): + """CanPaste(self) -> bool""" + return _html2.WebView_CanPaste(*args, **kwargs) + + def Copy(*args, **kwargs): + """Copy(self)""" + return _html2.WebView_Copy(*args, **kwargs) + + def Cut(*args, **kwargs): + """Cut(self)""" + return _html2.WebView_Cut(*args, **kwargs) + + def Paste(*args, **kwargs): + """Paste(self)""" + return _html2.WebView_Paste(*args, **kwargs) + + def CanGoBack(*args, **kwargs): + """CanGoBack(self) -> bool""" + return _html2.WebView_CanGoBack(*args, **kwargs) + + def CanGoForward(*args, **kwargs): + """CanGoForward(self) -> bool""" + return _html2.WebView_CanGoForward(*args, **kwargs) + + def ClearHistory(*args, **kwargs): + """ClearHistory(self)""" + return _html2.WebView_ClearHistory(*args, **kwargs) + + def EnableHistory(*args, **kwargs): + """EnableHistory(self, bool enable=True)""" + return _html2.WebView_EnableHistory(*args, **kwargs) + + def GoBack(*args, **kwargs): + """GoBack(self)""" + return _html2.WebView_GoBack(*args, **kwargs) + + def GoForward(*args, **kwargs): + """GoForward(self)""" + return _html2.WebView_GoForward(*args, **kwargs) + + def LoadHistoryItem(*args, **kwargs): + """LoadHistoryItem(self, wxSharedPtr<(wxWebViewHistoryItem)> item)""" + return _html2.WebView_LoadHistoryItem(*args, **kwargs) + + def ClearSelection(*args, **kwargs): + """ClearSelection(self)""" + return _html2.WebView_ClearSelection(*args, **kwargs) + + def DeleteSelection(*args, **kwargs): + """DeleteSelection(self)""" + return _html2.WebView_DeleteSelection(*args, **kwargs) + + def GetSelectedSource(*args, **kwargs): + """GetSelectedSource(self) -> String""" + return _html2.WebView_GetSelectedSource(*args, **kwargs) + + def GetSelectedText(*args, **kwargs): + """GetSelectedText(self) -> String""" + return _html2.WebView_GetSelectedText(*args, **kwargs) + + def HasSelection(*args, **kwargs): + """HasSelection(self) -> bool""" + return _html2.WebView_HasSelection(*args, **kwargs) + + def SelectAll(*args, **kwargs): + """SelectAll(self)""" + return _html2.WebView_SelectAll(*args, **kwargs) + + def CanRedo(*args, **kwargs): + """CanRedo(self) -> bool""" + return _html2.WebView_CanRedo(*args, **kwargs) + + def CanUndo(*args, **kwargs): + """CanUndo(self) -> bool""" + return _html2.WebView_CanUndo(*args, **kwargs) + + def Redo(*args, **kwargs): + """Redo(self)""" + return _html2.WebView_Redo(*args, **kwargs) + + def Undo(*args, **kwargs): + """Undo(self)""" + return _html2.WebView_Undo(*args, **kwargs) + + def CanSetZoomType(*args, **kwargs): + """CanSetZoomType(self, int type) -> bool""" + return _html2.WebView_CanSetZoomType(*args, **kwargs) + + def GetZoom(*args, **kwargs): + """GetZoom(self) -> int""" + return _html2.WebView_GetZoom(*args, **kwargs) + + def GetZoomType(*args, **kwargs): + """GetZoomType(self) -> int""" + return _html2.WebView_GetZoomType(*args, **kwargs) + + def SetZoom(*args, **kwargs): + """SetZoom(self, int zoom)""" + return _html2.WebView_SetZoom(*args, **kwargs) + + def SetZoomType(*args, **kwargs): + """SetZoomType(self, int zoomType)""" + return _html2.WebView_SetZoomType(*args, **kwargs) + + def GetNativeBackend(*args, **kwargs): + """GetNativeBackend(self) -> void""" + return _html2.WebView_GetNativeBackend(*args, **kwargs) + + def Find(*args, **kwargs): + """Find(self, String text, int flags=WEBVIEW_FIND_DEFAULT) -> long""" + return _html2.WebView_Find(*args, **kwargs) + +_html2.WebView_swigregister(WebView) + +def WebView_PreNew(*args, **kwargs): + """WebView_PreNew(String backend=wxWebViewBackendDefault) -> WebView""" + return _html2.WebView_PreNew(*args, **kwargs) + +def WebView_New(*args, **kwargs): + """ + WebView_New(Window parent, int id=ID_ANY, String url=wxWebViewDefaultURLStr, + Point pos=DefaultPosition, Size size=DefaultSize, + String backend=wxWebViewBackendDefault, + long style=0, String name=wxWebViewNameStr) -> WebView + """ + val = _html2.WebView_New(*args, **kwargs) + val._setOORInfo(val) + return val + +class WebViewEvent(_core.NotifyEvent): + """Proxy of C++ WebViewEvent class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, EventType type, int id, String href, String target) -> WebViewEvent""" + _html2.WebViewEvent_swiginit(self,_html2.new_WebViewEvent(*args, **kwargs)) + def GetTarget(*args, **kwargs): + """GetTarget(self) -> String""" + return _html2.WebViewEvent_GetTarget(*args, **kwargs) + + def GetURL(*args, **kwargs): + """GetURL(self) -> String""" + return _html2.WebViewEvent_GetURL(*args, **kwargs) + +_html2.WebViewEvent_swigregister(WebViewEvent) + +wxEVT_WEBVIEW_NAVIGATING = _html2.wxEVT_WEBVIEW_NAVIGATING +wxEVT_WEBVIEW_NAVIGATED = _html2.wxEVT_WEBVIEW_NAVIGATED +wxEVT_WEBVIEW_LOADED = _html2.wxEVT_WEBVIEW_LOADED +wxEVT_WEBVIEW_ERROR = _html2.wxEVT_WEBVIEW_ERROR +wxEVT_WEBVIEW_NEWWINDOW = _html2.wxEVT_WEBVIEW_NEWWINDOW +wxEVT_WEBVIEW_TITLE_CHANGED = _html2.wxEVT_WEBVIEW_TITLE_CHANGED +wxEVT_COMMAND_WEBVIEW_NAVIGATING = _html2.wxEVT_COMMAND_WEBVIEW_NAVIGATING +wxEVT_COMMAND_WEBVIEW_NAVIGATED = _html2.wxEVT_COMMAND_WEBVIEW_NAVIGATED +wxEVT_COMMAND_WEBVIEW_LOADED = _html2.wxEVT_COMMAND_WEBVIEW_LOADED +wxEVT_COMMAND_WEBVIEW_ERROR = _html2.wxEVT_COMMAND_WEBVIEW_ERROR +wxEVT_COMMAND_WEBVIEW_NEWWINDOW = _html2.wxEVT_COMMAND_WEBVIEW_NEWWINDOW +wxEVT_COMMAND_WEBVIEW_TITLE_CHANGED = _html2.wxEVT_COMMAND_WEBVIEW_TITLE_CHANGED +EVT_WEBVIEW_NAVIGATING = wx.PyEventBinder( wxEVT_WEBVIEW_NAVIGATING, 1 ) +EVT_WEBVIEW_NAVIGATED = wx.PyEventBinder( wxEVT_WEBVIEW_NAVIGATED, 1 ) +EVT_WEBVIEW_LOADED = wx.PyEventBinder( wxEVT_WEBVIEW_LOADED, 1 ) +EVT_WEBVIEW_ERROR = wx.PyEventBinder( wxEVT_WEBVIEW_ERROR, 1 ) +EVT_WEBVIEW_NEWWINDOW = wx.PyEventBinder( wxEVT_WEBVIEW_NEWWINDOW, 1 ) +EVT_WEBVIEW_TITLE_CHANGED = wx.PyEventBinder( wxEVT_WEBVIEW_TITLE_CHANGED, 1 ) + +class WebViewHandler(object): + """Proxy of C++ WebViewHandler class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + def GetFile(*args, **kwargs): + """GetFile(self, String uri) -> FSFile""" + return _html2.WebViewHandler_GetFile(*args, **kwargs) + + def GetName(*args, **kwargs): + """GetName(self) -> String""" + return _html2.WebViewHandler_GetName(*args, **kwargs) + +_html2.WebViewHandler_swigregister(WebViewHandler) + +class PyWebViewHandler(WebViewHandler): + """Proxy of C++ PyWebViewHandler class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String scheme) -> PyWebViewHandler""" + _html2.PyWebViewHandler_swiginit(self,_html2.new_PyWebViewHandler(*args, **kwargs)) + PyWebViewHandler._setCallbackInfo(self, self, PyWebViewHandler) + + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(self, PyObject self, PyObject _class)""" + return _html2.PyWebViewHandler__setCallbackInfo(*args, **kwargs) + +_html2.PyWebViewHandler_swigregister(PyWebViewHandler) + +class WebViewArchiveHandler(WebViewHandler): + """Proxy of C++ WebViewArchiveHandler class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr +_html2.WebViewArchiveHandler_swigregister(WebViewArchiveHandler) + + + |