/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/html2.py is in python-wxgtk-webview3.0 3.0.2.0+dfsg-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | # 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)
|