1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 wx.webkit.WebKitCtrl for Mac OSX.
10 new_instancemethod
= new
.instancemethod
11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if (name
== "thisown"): return self
.this
.own(value
)
14 if type(value
).__name
__ == 'PySwigObject':
15 self
.__dict
__[name
] = value
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
):
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 if (name
== "thisown"): return self
.this
.own()
29 method
= class_type
.__swig
_getmethods
__.get(name
,None)
30 if method
: return method(self
)
31 raise AttributeError,name
34 try: strthis
= "proxy of " + self
.this
.__repr
__()
36 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
40 _object
= types
.ObjectType
42 except AttributeError:
48 def _swig_setattr_nondynamic_method(set):
49 def set_attr(self
,name
,value
):
50 if (name
== "thisown"): return self
.this
.own(value
)
51 if hasattr(self
,name
) or (name
== "this"):
54 raise AttributeError("You cannot add attributes to %s" % self
)
60 __docfilter__
= wx
.__DocFilter
(globals())
61 class WebKitCtrl(_core
.Control
):
62 """Proxy of C++ WebKitCtrl class"""
63 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
65 def __init__(self
, *args
, **kwargs
):
67 __init__(self, Window parent, int winID=-1, String strURL=EmptyString,
68 Point pos=DefaultPosition, Size size=DefaultSize,
69 long style=0, Validator validator=DefaultValidator,
70 String name=WebKitNameStr) -> WebKitCtrl
72 _webkit
.WebKitCtrl_swiginit(self
,_webkit
.new_WebKitCtrl(*args
, **kwargs
))
73 self
._setOORInfo
(self
)
75 def Create(*args
, **kwargs
):
77 Create(self, Window parent, int winID=-1, String strURL=EmptyString,
78 Point pos=DefaultPosition, Size size=DefaultSize,
79 long style=0, Validator validator=DefaultValidator,
80 String name=WebKitNameStr) -> bool
82 return _webkit
.WebKitCtrl_Create(*args
, **kwargs
)
84 def LoadURL(*args
, **kwargs
):
85 """LoadURL(self, String url)"""
86 return _webkit
.WebKitCtrl_LoadURL(*args
, **kwargs
)
88 def CanGoBack(*args
, **kwargs
):
89 """CanGoBack(self) -> bool"""
90 return _webkit
.WebKitCtrl_CanGoBack(*args
, **kwargs
)
92 def CanGoForward(*args
, **kwargs
):
93 """CanGoForward(self) -> bool"""
94 return _webkit
.WebKitCtrl_CanGoForward(*args
, **kwargs
)
96 def GoBack(*args
, **kwargs
):
97 """GoBack(self) -> bool"""
98 return _webkit
.WebKitCtrl_GoBack(*args
, **kwargs
)
100 def GoForward(*args
, **kwargs
):
101 """GoForward(self) -> bool"""
102 return _webkit
.WebKitCtrl_GoForward(*args
, **kwargs
)
104 def Reload(*args
, **kwargs
):
106 return _webkit
.WebKitCtrl_Reload(*args
, **kwargs
)
108 def Stop(*args
, **kwargs
):
110 return _webkit
.WebKitCtrl_Stop(*args
, **kwargs
)
112 def CanGetPageSource(*args
, **kwargs
):
113 """CanGetPageSource(self) -> bool"""
114 return _webkit
.WebKitCtrl_CanGetPageSource(*args
, **kwargs
)
116 def GetPageSource(*args
, **kwargs
):
117 """GetPageSource(self) -> String"""
118 return _webkit
.WebKitCtrl_GetPageSource(*args
, **kwargs
)
120 def SetPageSource(*args
, **kwargs
):
121 """SetPageSource(self, String source, String baseUrl=EmptyString)"""
122 return _webkit
.WebKitCtrl_SetPageSource(*args
, **kwargs
)
124 def GetPageURL(*args
, **kwargs
):
125 """GetPageURL(self) -> String"""
126 return _webkit
.WebKitCtrl_GetPageURL(*args
, **kwargs
)
128 def GetPageTitle(*args
, **kwargs
):
129 """GetPageTitle(self) -> String"""
130 return _webkit
.WebKitCtrl_GetPageTitle(*args
, **kwargs
)
132 WebKitCtrl_swigregister
= _webkit
.WebKitCtrl_swigregister
133 WebKitCtrl_swigregister(WebKitCtrl
)
135 WebKitNameStr
= cvar
.WebKitNameStr
137 def PreWebKitCtrl(*args
, **kwargs
):
138 """PreWebKitCtrl() -> WebKitCtrl"""
139 val
= _webkit
.new_PreWebKitCtrl(*args
, **kwargs
)
142 WEBKIT_STATE_START
= _webkit
.WEBKIT_STATE_START
143 WEBKIT_STATE_NEGOTIATING
= _webkit
.WEBKIT_STATE_NEGOTIATING
144 WEBKIT_STATE_REDIRECTING
= _webkit
.WEBKIT_STATE_REDIRECTING
145 WEBKIT_STATE_TRANSFERRING
= _webkit
.WEBKIT_STATE_TRANSFERRING
146 WEBKIT_STATE_STOP
= _webkit
.WEBKIT_STATE_STOP
147 WEBKIT_STATE_FAILED
= _webkit
.WEBKIT_STATE_FAILED
148 wxEVT_WEBKIT_STATE_CHANGED
= _webkit
.wxEVT_WEBKIT_STATE_CHANGED
149 class WebKitStateChangedEvent(_core
.CommandEvent
):
150 """Proxy of C++ WebKitStateChangedEvent class"""
151 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
152 __repr__
= _swig_repr
153 def __init__(self
, *args
, **kwargs
):
154 """__init__(self, Window win=None) -> WebKitStateChangedEvent"""
155 _webkit
.WebKitStateChangedEvent_swiginit(self
,_webkit
.new_WebKitStateChangedEvent(*args
, **kwargs
))
156 def GetState(*args
, **kwargs
):
157 """GetState(self) -> int"""
158 return _webkit
.WebKitStateChangedEvent_GetState(*args
, **kwargs
)
160 def SetState(*args
, **kwargs
):
161 """SetState(self, int state)"""
162 return _webkit
.WebKitStateChangedEvent_SetState(*args
, **kwargs
)
164 def GetURL(*args
, **kwargs
):
165 """GetURL(self) -> String"""
166 return _webkit
.WebKitStateChangedEvent_GetURL(*args
, **kwargs
)
168 def SetURL(*args
, **kwargs
):
169 """SetURL(self, String url)"""
170 return _webkit
.WebKitStateChangedEvent_SetURL(*args
, **kwargs
)
172 WebKitStateChangedEvent_swigregister
= _webkit
.WebKitStateChangedEvent_swigregister
173 WebKitStateChangedEvent_swigregister(WebKitStateChangedEvent
)
175 EVT_WEBKIT_STATE_CHANGED
= wx
.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED
)