1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
5 wx.webkit.WebKitCtrl for Mac OSX.
10 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if isinstance(value
, class_type
):
13 self
.__dict
__[name
] = value
.this
14 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
20 self
.__dict
__[name
] = value
22 raise AttributeError("You cannot add attributes to %s" % self
)
24 def _swig_setattr(self
,class_type
,name
,value
):
25 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
27 def _swig_getattr(self
,class_type
,name
):
28 method
= class_type
.__swig
_getmethods
__.get(name
,None)
29 if method
: return method(self
)
30 raise AttributeError,name
34 _object
= types
.ObjectType
36 except AttributeError:
42 def _swig_setattr_nondynamic_method(set):
43 def set_attr(self
,name
,value
):
44 if hasattr(self
,name
) or (name
in ("this", "thisown")):
47 raise AttributeError("You cannot add attributes to %s" % self
)
53 __docfilter__
= wx
.__DocFilter
(globals())
54 class WebKitCtrl(_core
.Control
):
55 """Proxy of C++ WebKitCtrl class"""
57 return "<%s.%s; proxy of C++ wxWebKitCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
58 def __init__(self
, *args
, **kwargs
):
60 __init__(self, Window parent, int winID=-1, String strURL=EmptyString,
61 Point pos=DefaultPosition, Size size=DefaultSize,
62 long style=0, Validator validator=DefaultValidator,
63 String name=WebKitNameStr) -> WebKitCtrl
65 newobj
= _webkit
.new_WebKitCtrl(*args
, **kwargs
)
66 self
.this
= newobj
.this
69 self
._setOORInfo
(self
)
71 def Create(*args
, **kwargs
):
73 Create(self, Window parent, int winID=-1, String strURL=EmptyString,
74 Point pos=DefaultPosition, Size size=DefaultSize,
75 long style=0, Validator validator=DefaultValidator,
76 String name=WebKitNameStr) -> bool
78 return _webkit
.WebKitCtrl_Create(*args
, **kwargs
)
80 def LoadURL(*args
, **kwargs
):
81 """LoadURL(self, String url)"""
82 return _webkit
.WebKitCtrl_LoadURL(*args
, **kwargs
)
84 def CanGoBack(*args
, **kwargs
):
85 """CanGoBack(self) -> bool"""
86 return _webkit
.WebKitCtrl_CanGoBack(*args
, **kwargs
)
88 def CanGoForward(*args
, **kwargs
):
89 """CanGoForward(self) -> bool"""
90 return _webkit
.WebKitCtrl_CanGoForward(*args
, **kwargs
)
92 def GoBack(*args
, **kwargs
):
93 """GoBack(self) -> bool"""
94 return _webkit
.WebKitCtrl_GoBack(*args
, **kwargs
)
96 def GoForward(*args
, **kwargs
):
97 """GoForward(self) -> bool"""
98 return _webkit
.WebKitCtrl_GoForward(*args
, **kwargs
)
100 def Reload(*args
, **kwargs
):
102 return _webkit
.WebKitCtrl_Reload(*args
, **kwargs
)
104 def Stop(*args
, **kwargs
):
106 return _webkit
.WebKitCtrl_Stop(*args
, **kwargs
)
108 def CanGetPageSource(*args
, **kwargs
):
109 """CanGetPageSource(self) -> bool"""
110 return _webkit
.WebKitCtrl_CanGetPageSource(*args
, **kwargs
)
112 def GetPageSource(*args
, **kwargs
):
113 """GetPageSource(self) -> String"""
114 return _webkit
.WebKitCtrl_GetPageSource(*args
, **kwargs
)
116 def SetPageSource(*args
, **kwargs
):
117 """SetPageSource(self, String source, String baseUrl=EmptyString)"""
118 return _webkit
.WebKitCtrl_SetPageSource(*args
, **kwargs
)
120 def GetPageURL(*args
, **kwargs
):
121 """GetPageURL(self) -> String"""
122 return _webkit
.WebKitCtrl_GetPageURL(*args
, **kwargs
)
124 def GetPageTitle(*args
, **kwargs
):
125 """GetPageTitle(self) -> String"""
126 return _webkit
.WebKitCtrl_GetPageTitle(*args
, **kwargs
)
129 class WebKitCtrlPtr(WebKitCtrl
):
130 def __init__(self
, this
):
132 if not hasattr(self
,"thisown"): self
.thisown
= 0
133 self
.__class
__ = WebKitCtrl
134 _webkit
.WebKitCtrl_swigregister(WebKitCtrlPtr
)
136 WebKitNameStr
= cvar
.WebKitNameStr
138 def PreWebKitCtrl(*args
, **kwargs
):
139 """PreWebKitCtrl() -> WebKitCtrl"""
140 val
= _webkit
.new_PreWebKitCtrl(*args
, **kwargs
)
144 WEBKIT_STATE_START
= _webkit
.WEBKIT_STATE_START
145 WEBKIT_STATE_NEGOTIATING
= _webkit
.WEBKIT_STATE_NEGOTIATING
146 WEBKIT_STATE_REDIRECTING
= _webkit
.WEBKIT_STATE_REDIRECTING
147 WEBKIT_STATE_TRANSFERRING
= _webkit
.WEBKIT_STATE_TRANSFERRING
148 WEBKIT_STATE_STOP
= _webkit
.WEBKIT_STATE_STOP
149 WEBKIT_STATE_FAILED
= _webkit
.WEBKIT_STATE_FAILED
150 wxEVT_WEBKIT_STATE_CHANGED
= _webkit
.wxEVT_WEBKIT_STATE_CHANGED
151 class WebKitStateChangedEvent(_core
.CommandEvent
):
152 """Proxy of C++ WebKitStateChangedEvent class"""
154 return "<%s.%s; proxy of C++ wxWebKitStateChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
155 def __init__(self
, *args
, **kwargs
):
156 """__init__(self, Window win=None) -> WebKitStateChangedEvent"""
157 newobj
= _webkit
.new_WebKitStateChangedEvent(*args
, **kwargs
)
158 self
.this
= newobj
.this
161 def GetState(*args
, **kwargs
):
162 """GetState(self) -> int"""
163 return _webkit
.WebKitStateChangedEvent_GetState(*args
, **kwargs
)
165 def SetState(*args
, **kwargs
):
166 """SetState(self, int state)"""
167 return _webkit
.WebKitStateChangedEvent_SetState(*args
, **kwargs
)
169 def GetURL(*args
, **kwargs
):
170 """GetURL(self) -> String"""
171 return _webkit
.WebKitStateChangedEvent_GetURL(*args
, **kwargs
)
173 def SetURL(*args
, **kwargs
):
174 """SetURL(self, String url)"""
175 return _webkit
.WebKitStateChangedEvent_SetURL(*args
, **kwargs
)
178 class WebKitStateChangedEventPtr(WebKitStateChangedEvent
):
179 def __init__(self
, this
):
181 if not hasattr(self
,"thisown"): self
.thisown
= 0
182 self
.__class
__ = WebKitStateChangedEvent
183 _webkit
.WebKitStateChangedEvent_swigregister(WebKitStateChangedEventPtr
)
185 EVT_WEBKIT_STATE_CHANGED
= wx
.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED
)