/usr/share/pyshared/wx-2.8-gtk2-unicode/wx/webkit.py is in python-wxgtk2.8 2.8.12.1-6ubuntu2.
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 | # This file was created automatically by SWIG 1.3.29.
# Don't modify this file, modify the SWIG interface instead.
"""
wx.webkit.WebKitCtrl for Mac OSX.
"""
import _webkit
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())
class WebKitCtrl(_core.Control):
"""Proxy of C++ WebKitCtrl 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, Window parent, int winID=-1, String strURL=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, Validator validator=DefaultValidator,
String name=WebKitNameStr) -> WebKitCtrl
"""
_webkit.WebKitCtrl_swiginit(self,_webkit.new_WebKitCtrl(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int winID=-1, String strURL=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, Validator validator=DefaultValidator,
String name=WebKitNameStr) -> bool
"""
return _webkit.WebKitCtrl_Create(*args, **kwargs)
def LoadURL(*args, **kwargs):
"""LoadURL(self, String url)"""
return _webkit.WebKitCtrl_LoadURL(*args, **kwargs)
def CanGoBack(*args, **kwargs):
"""CanGoBack(self) -> bool"""
return _webkit.WebKitCtrl_CanGoBack(*args, **kwargs)
def CanGoForward(*args, **kwargs):
"""CanGoForward(self) -> bool"""
return _webkit.WebKitCtrl_CanGoForward(*args, **kwargs)
def GoBack(*args, **kwargs):
"""GoBack(self) -> bool"""
return _webkit.WebKitCtrl_GoBack(*args, **kwargs)
def GoForward(*args, **kwargs):
"""GoForward(self) -> bool"""
return _webkit.WebKitCtrl_GoForward(*args, **kwargs)
def Reload(*args, **kwargs):
"""Reload(self)"""
return _webkit.WebKitCtrl_Reload(*args, **kwargs)
def Stop(*args, **kwargs):
"""Stop(self)"""
return _webkit.WebKitCtrl_Stop(*args, **kwargs)
def CanGetPageSource(*args, **kwargs):
"""CanGetPageSource(self) -> bool"""
return _webkit.WebKitCtrl_CanGetPageSource(*args, **kwargs)
def GetPageSource(*args, **kwargs):
"""GetPageSource(self) -> String"""
return _webkit.WebKitCtrl_GetPageSource(*args, **kwargs)
def SetPageSource(*args, **kwargs):
"""SetPageSource(self, String source, String baseUrl=EmptyString)"""
return _webkit.WebKitCtrl_SetPageSource(*args, **kwargs)
def GetPageURL(*args, **kwargs):
"""GetPageURL(self) -> String"""
return _webkit.WebKitCtrl_GetPageURL(*args, **kwargs)
def GetPageTitle(*args, **kwargs):
"""GetPageTitle(self) -> String"""
return _webkit.WebKitCtrl_GetPageTitle(*args, **kwargs)
def GetSelection(*args, **kwargs):
"""GetSelection(self) -> String"""
return _webkit.WebKitCtrl_GetSelection(*args, **kwargs)
def CanIncreaseTextSize(*args, **kwargs):
"""CanIncreaseTextSize(self) -> bool"""
return _webkit.WebKitCtrl_CanIncreaseTextSize(*args, **kwargs)
def IncreaseTextSize(*args, **kwargs):
"""IncreaseTextSize(self)"""
return _webkit.WebKitCtrl_IncreaseTextSize(*args, **kwargs)
def CanDecreaseTextSize(*args, **kwargs):
"""CanDecreaseTextSize(self) -> bool"""
return _webkit.WebKitCtrl_CanDecreaseTextSize(*args, **kwargs)
def DecreaseTextSize(*args, **kwargs):
"""DecreaseTextSize(self)"""
return _webkit.WebKitCtrl_DecreaseTextSize(*args, **kwargs)
def Print(*args, **kwargs):
"""Print(self, bool showPrompt=False)"""
return _webkit.WebKitCtrl_Print(*args, **kwargs)
def MakeEditable(*args, **kwargs):
"""MakeEditable(self, bool enable=True)"""
return _webkit.WebKitCtrl_MakeEditable(*args, **kwargs)
def IsEditable(*args, **kwargs):
"""IsEditable(self) -> bool"""
return _webkit.WebKitCtrl_IsEditable(*args, **kwargs)
def RunScript(*args, **kwargs):
"""RunScript(self, String javascript) -> String"""
return _webkit.WebKitCtrl_RunScript(*args, **kwargs)
def SetScrollPos(*args, **kwargs):
"""SetScrollPos(self, int pos)"""
return _webkit.WebKitCtrl_SetScrollPos(*args, **kwargs)
def GetScrollPos(*args, **kwargs):
"""GetScrollPos(self) -> int"""
return _webkit.WebKitCtrl_GetScrollPos(*args, **kwargs)
PageSource = property(GetPageSource,SetPageSource,doc="See `GetPageSource` and `SetPageSource`")
PageTitle = property(GetPageTitle,doc="See `GetPageTitle`")
PageURL = property(GetPageURL,doc="See `GetPageURL`")
ScrollPos = property(GetScrollPos,SetScrollPos,doc="See `GetScrollPos and SetScrollPos`")
Selection = property(GetSelection,doc="See `GetSelection`")
_webkit.WebKitCtrl_swigregister(WebKitCtrl)
cvar = _webkit.cvar
WebKitNameStr = cvar.WebKitNameStr
def PreWebKitCtrl(*args, **kwargs):
"""PreWebKitCtrl() -> WebKitCtrl"""
val = _webkit.new_PreWebKitCtrl(*args, **kwargs)
return val
WEBKIT_STATE_START = _webkit.WEBKIT_STATE_START
WEBKIT_STATE_NEGOTIATING = _webkit.WEBKIT_STATE_NEGOTIATING
WEBKIT_STATE_REDIRECTING = _webkit.WEBKIT_STATE_REDIRECTING
WEBKIT_STATE_TRANSFERRING = _webkit.WEBKIT_STATE_TRANSFERRING
WEBKIT_STATE_STOP = _webkit.WEBKIT_STATE_STOP
WEBKIT_STATE_FAILED = _webkit.WEBKIT_STATE_FAILED
WEBKIT_NAV_LINK_CLICKED = _webkit.WEBKIT_NAV_LINK_CLICKED
WEBKIT_NAV_BACK_NEXT = _webkit.WEBKIT_NAV_BACK_NEXT
WEBKIT_NAV_FORM_SUBMITTED = _webkit.WEBKIT_NAV_FORM_SUBMITTED
WEBKIT_NAV_RELOAD = _webkit.WEBKIT_NAV_RELOAD
WEBKIT_NAV_FORM_RESUBMITTED = _webkit.WEBKIT_NAV_FORM_RESUBMITTED
WEBKIT_NAV_OTHER = _webkit.WEBKIT_NAV_OTHER
wxEVT_WEBKIT_STATE_CHANGED = _webkit.wxEVT_WEBKIT_STATE_CHANGED
wxEVT_WEBKIT_BEFORE_LOAD = _webkit.wxEVT_WEBKIT_BEFORE_LOAD
wxEVT_WEBKIT_NEW_WINDOW = _webkit.wxEVT_WEBKIT_NEW_WINDOW
class WebKitBeforeLoadEvent(_core.CommandEvent):
"""Proxy of C++ WebKitBeforeLoadEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def IsCancelled(*args, **kwargs):
"""IsCancelled(self) -> bool"""
return _webkit.WebKitBeforeLoadEvent_IsCancelled(*args, **kwargs)
def Cancel(*args, **kwargs):
"""Cancel(self, bool cancel=True)"""
return _webkit.WebKitBeforeLoadEvent_Cancel(*args, **kwargs)
def GetURL(*args, **kwargs):
"""GetURL(self) -> String"""
return _webkit.WebKitBeforeLoadEvent_GetURL(*args, **kwargs)
def SetURL(*args, **kwargs):
"""SetURL(self, String url)"""
return _webkit.WebKitBeforeLoadEvent_SetURL(*args, **kwargs)
def SetNavigationType(*args, **kwargs):
"""SetNavigationType(self, int navType)"""
return _webkit.WebKitBeforeLoadEvent_SetNavigationType(*args, **kwargs)
def GetNavigationType(*args, **kwargs):
"""GetNavigationType(self) -> int"""
return _webkit.WebKitBeforeLoadEvent_GetNavigationType(*args, **kwargs)
def __init__(self, *args, **kwargs):
"""__init__(self, Window win=(wxWindow *) NULL) -> WebKitBeforeLoadEvent"""
_webkit.WebKitBeforeLoadEvent_swiginit(self,_webkit.new_WebKitBeforeLoadEvent(*args, **kwargs))
NavigationType = property(GetNavigationType,SetNavigationType,doc="See `GetNavigationType` and `SetNavigationType`")
URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
_webkit.WebKitBeforeLoadEvent_swigregister(WebKitBeforeLoadEvent)
class WebKitStateChangedEvent(_core.CommandEvent):
"""Proxy of C++ WebKitStateChangedEvent 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, Window win=None) -> WebKitStateChangedEvent"""
_webkit.WebKitStateChangedEvent_swiginit(self,_webkit.new_WebKitStateChangedEvent(*args, **kwargs))
def GetState(*args, **kwargs):
"""GetState(self) -> int"""
return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs)
def SetState(*args, **kwargs):
"""SetState(self, int state)"""
return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs)
def GetURL(*args, **kwargs):
"""GetURL(self) -> String"""
return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs)
def SetURL(*args, **kwargs):
"""SetURL(self, String url)"""
return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs)
State = property(GetState,SetState,doc="See `GetState` and `SetState`")
URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
_webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEvent)
class WebKitNewWindowEvent(_core.CommandEvent):
"""Proxy of C++ WebKitNewWindowEvent class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def GetURL(*args, **kwargs):
"""GetURL(self) -> String"""
return _webkit.WebKitNewWindowEvent_GetURL(*args, **kwargs)
def SetURL(*args, **kwargs):
"""SetURL(self, String url)"""
return _webkit.WebKitNewWindowEvent_SetURL(*args, **kwargs)
def GetTargetName(*args, **kwargs):
"""GetTargetName(self) -> String"""
return _webkit.WebKitNewWindowEvent_GetTargetName(*args, **kwargs)
def SetTargetName(*args, **kwargs):
"""SetTargetName(self, String name)"""
return _webkit.WebKitNewWindowEvent_SetTargetName(*args, **kwargs)
def __init__(self, *args, **kwargs):
"""__init__(self, Window win=None) -> WebKitNewWindowEvent"""
_webkit.WebKitNewWindowEvent_swiginit(self,_webkit.new_WebKitNewWindowEvent(*args, **kwargs))
URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
TargetName = property(GetTargetName,SetTargetName)
_webkit.WebKitNewWindowEvent_swigregister(WebKitNewWindowEvent)
EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED)
EVT_WEBKIT_BEFORE_LOAD = wx.PyEventBinder(wxEVT_WEBKIT_BEFORE_LOAD)
EVT_WEBKIT_NEW_WINDOW = wx.PyEventBinder(wxEVT_WEBKIT_NEW_WINDOW)
|